Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 MFC VC VC++
Hi All,
When i buy the new vs2010 so, i need to convert all my existing project to new studio.
that is from from vs2003 to vs2010.
Now all working fine except one error,
 
error c2059:syntax error <L_TYPE_raw>
When i convert my vs2003 project to vs2010 i get syntax.
 
after spending lot of time on google i only get a above question ont answer.
Please provide ,
Even single hing, or link to ,
How to solve above error?
Thanks
Posted 5-Sep-12 22:37pm
Comments
Jochen Arndt at 6-Sep-12 5:29am
   
See http://msdn.microsoft.com/en-us/library/t8xe60cf%28v=vs.100%29.aspx:
"To determine the cause of the error, examine not only the line listed in the error message, but also the lines above it."
You should post some lines of the code that produces the error. If a struct or typedef might be involved, you should also post the definition.
Mike Meinz at 2-Jun-14 9:35am
   
VS 2010 is not the newest Visual Studio. VS 2012 and VS 2013 are newer.
Manikandan10 at 3-Jun-14 5:02am
   
OP didn't claim that VS 2010 is the newest Visual Studio.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

There is one solution at this link http://social.msdn.microsoft.com/forums/en-US/98d6e420-a6fe-4796-a269-2d7a60060db4/cannot-resolve-error-c2059-syntax-error-ltyperaw[^]
 
It says
Quote:
Question: Has anybody got any experience of this build error: error C2059: syntax error : ''
 
If I double-click on the error it takes me to the following line in file MSADO25.tlh;
 
VARIANT_BOOL EOF;
 
Answer: EOF is defined as a macro; when it expands, this line becomes nonsense. A common workaround is to add rename("EOF", "adoEOF") attribute to your #import directive.

 
The description explains that the line that is causing the syntax error uses a keyword that is a macro in one of your #imports. You may have two #imports that when imported together cause this problem. By renaming the macro name in the #import you can correct the error.
 
I hope this helps although this may or may not be the solution to your problem.
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 210
1 Richard MacCutchan 100
2 kbrandwijk 90
3 ChauhanAjay 80
4 ProgramFOX 80
0 Sergey Alexandrovich Kryukov 9,050
1 OriginalGriff 8,151
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 2 Jun 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100