Re: typedef error - please help

Ben wrote:

i'm converting an old VC 6 project to VC 2005.

it's giving this error:

error C2144: syntax error : 'char' should be preceded by ';'

this is in some header file of a class i have downloaded before to
handle smtp email... that line in that file is simply:

typedef char DwChar7; // type for ASCII characters

and there's no much code before it besides some #defines.... is there
something with typedef that causes this error ?

The line you cared to share with us has NO error. It's something beyond
that line that affects the overall compilation. See the previous line
and see if 'typedef' is not redefined as a macro somewhere (although it
would be illegal to redefine it).

Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask