Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
Jochen Arndt 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 2-Jun-14 9:35am    
VS 2010 is not the newest Visual Studio. VS 2012 and VS 2013 are newer.
[no name] 3-Jun-14 5:02am    
OP didn't claim that VS 2010 is the newest Visual Studio.

1 solution

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 : '<l_type_raw>'

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.
 
Share this answer
 
v3

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900