From: f.luglio++at++ciaoweb.it
Date: 02/13/2002 08:59:58
This is a multi-part message in MIME format.
------=_NextPart_000_0029_01C14E61.3C2EAA50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
========================================================================================
I am trying to learn VC++6 and using the book TEACH YOURSELF VC++ by SAMS. I am stuck
in chapter 10 trying to compile the following piece of code which is exactly the same
as shown in the book. I get this messages when I build the code:
d: [...] day10doc.h(35) : error C2143: syntax error : missing ';' before '*'
d: [...] day10doc.h(35) : error C2501: 'CLine' : missing storage-class or type specifiers
d: [...] day10doc.h(35) : error C2501: 'GetLine' : missing storage-class or type specifiers
35: CLine* GetLine(int nIndex);
Now, 'CLine' is my own class I created using classwizard. Nowhere else I find this error again when I use CLine, which means that VC++ knows the existence of CLine as class.
CLine inherits from CObject class. It seems a problem related to using pointers for CLine.
What can I do? Is it a problem with the configuration of my project? Directories?
Can anybody help please?
Thank you
Fabrizio
_________________________________________________________________________
This archive was generated by hypermail 2b29 : Wed Feb 13 2002 - 09:00:38 PST