When I migrant the project from vc6.0 to vc2003 and rebuild it, there's always a 'C2059 newline' erro.

One of the source file is as follows:

// Imports

#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename ( "EOF", "adoEOF" )
#import "c:\program files\common files\Microsoft Shared\CDO\cdoex.dll" no_namespace

#import "c:\program files\exchsrvr\bin\cdoexm.dll" no_namespace

#include "cdoexstr.h"
#include "cdoexerr.h"
#include <Clusapi.h>


the copiling erro is

error C2059: syntax error : ˇ°newlineˇ±
fatal error C1903: unable to recover from last error, compilin

Any one who can help me Thanks a lot

Re: Visual C++ General erro c2059 while migrant project from vc6.0 to vc2003

Simple Samples

Have seen Compiler Error C2059 Since the error message says "newline" we probably cannot see the data causing the problem. Somehow the source code has gotten the wrong characters for a newline. You can use the binary editor in VS to see what is actually in the file.