Porting unmanaged c++ dll from VS Net 2003 to VS Net 2005 beta 2 Windows Mobile
we are currently face with a big problem..
We have an application made in c# than run on windows xp an 2k using .net framework 1.1.
The solution is almost all in c# except 1 project that is in unmanaged c++.
Everything is working fine under Vs Net 2003.
We're trying to port this application to Windows Mobile 2003 and/or Windows Mobile 5 but we have some problem with the c++ project.
Theres some include files that cant be found witch are : #include
#include
<sys/types.h>#include
<errno.h>i've grabbed thos files from visual studio 2005 vc include folder as they are not in the pocket pc sdk include folder and putted them in my src folder and included them with " "
This dont seem to cause any problem.
But here are the most anoying problem :
Error 8 error C4980: '__gc' : use of this keyword requires /clr:oldSyntax command line option c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\ldpctest2\LdpcWrapper.h 24
Error 9 error C3630: error when processing the token '__gc' c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\ldpctest2\LdpcWrapper.h 24
Error 10 fatal error C1190: managed targeted code requires a '/clr' option c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\ldpctest2\LdpcWrapper.h 24
I vs net 2003 we needed the /clr switch
and from error 8 ('__gc' : use of this keyword requires /clr:oldSyntax command line option). i learned that i have to use the /clr:oldSyntax switch.
I tryied to find it in the project properting with no luck, so i added it manually in the c++ command line property but it makes an error :
Warning 1 Command line warning D9002 : ignoring unknown option '/clr:oldSyntax' cl
also tried with only /clr :
Warning 1 Command line warning D9002 : ignoring unknown option '/clr' cl
Here's our complete command line options list :
/Od /Os /D "_WIN32_WCE=0x501" /D "UNDER_CE=0x501" /D "WINCE" /D "WIN32_PLATFORM_PSPC" /D "_DEBUG" /D "DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LDPCTEST2_EXPORTS" /D "ARM" /D "_ARM_" /D "_UNICODE" /D "UNICODE" /D "_WINDLL" /Gm /EHsc /MTd /fp:fast /GR /Fo"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/" /Fd"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/vc80.pdb" /W3 /nologo /c /Zi /TP
Its seems to be a really simple problem but cant find the solution, please help!
Thanks a lot

