Question : Can't compile

Hi Experts,
I'm again trying to compile an old piece of code I did in Visual C++ 6.0 - now in Visual C++ 2008 Pro.  I have the following additional include folders:
C:\WinDDK\7600.16385.0\inc\api;C:\WinDDK\7600.16385.0\inc\ddk;C:\WinDDK\7600.16385.0\inc\crt;C:\WinDDK\7600.16385.0\inc\atl71;c:\WinDDK\7600.16385.0\bin\x86\OACR

I'm getting these errors - any ideas?
Thanks!

>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(736) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(737) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(737) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(738) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(739) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(739) : error C2143: syntax error : missing ')' before ';'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(773) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(774) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(774) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(947) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(948) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(948) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1003) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1004) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1004) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1139) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1139) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1139) : error C2143: syntax error : missing ')' before ';'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1504) : error C2061: syntax error : identifier '_Out_z_cap_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1504) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1504) : error C2143: syntax error : missing ')' before ';'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(841) : error C2061: syntax error : identifier '_In_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(841) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(841) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(858) : error C2061: syntax error : identifier '_Out_opt_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(859) : error C2061: syntax error : identifier '_Out_opt_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(901) : error C2061: syntax error : identifier '_In_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(902) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(902) : error C2143: syntax error : missing ')' before ';'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(903) : error C2061: syntax error : identifier '_In_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(904) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(904) : error C2143: syntax error : missing ')' before ';'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(904) : error C2535: 'int CDC::Escape(void)' : member function already defined or declared
1>        c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(901) : see declaration of 'CDC::Escape'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(1165) : error C2061: syntax error : identifier '_In_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(1166) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(1166) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdd_.h(39) : error C2065: '_Inout_' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdd_.h(39) : error C2146: syntax error : missing ')' before identifier 'CDataExchange'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdd_.h(39) : warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdd_.h(39) : error C2182: 'DDX_Text' : illegal use of type 'void'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdd_.h(39) : error C2365: 'DDX_Text' : redefinition; previous definition was 'function'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdd_.h(39) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2238) : error C2061: syntax error : identifier '_Out_z_cap_post_count_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2238) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2238) : error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2389) : error C2061: syntax error : identifier '_Inout_z_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2391) : error C2061: syntax error : identifier '_Inout_z_'
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2394) : error C2061: syntax error : identifier '_Out_z_cap_c_'
1>c:\program files\microsoft visual s

Answer : Can't compile

You can add the DDK directories in the project's properties 'Additional include path' and select 'Ignore standard include path' in preprocessor settings. In this case maybe you need to add some of the standard include paths in the 'Additional include path' too ...
Random Solutions  
 
programming4us programming4us