Message-ID: <37CF0007.67F146A8@unb.ca> From: Endlisnis X-Mailer: Mozilla 4.61 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Question References: <936170772 DOT 581298 AT Chaos DOT es DOT co DOT nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 Date: Fri, 03 Sep 1999 14:00:24 GMT NNTP-Posting-Host: 198.164.188.57 X-Trace: news21.bellglobal.com 936367224 198.164.188.57 (Fri, 03 Sep 1999 10:00:24 EDT) NNTP-Posting-Date: Fri, 03 Sep 1999 10:00:24 EDT Organization: Sympatico To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Christo Fogelberg wrote: > In method void DataBase::Search(): > Error: parse error before '.' > > and, again in Search: > Error: cannot call member function 'TestData::Check(TestData &)' without > object > > The specfic, reduced, code for each error is: > void DataBase::Search() > { > // Parse error occurs in the following line at the period, adding > angle > // brackets to the T indicates it occurs before the '<' however. > // This error occurs when the class is instantiated. > T.SearchFor(); "T" is a type-name, not an object. And since SearchFor is not a static member function, then it requires a object to call it. Only Bill knows why M$VC++ compiles this. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047