A
alecyy
I am developing a MFC dll, which will be invoked by a C# winform app.
But the cl.exe don't work if i use "/clr" option,
then i uncheck the "/clr" option, it work well.
Is there anything conflict within my settings?
And how to set it correctly?
my compiler settings£º
/Od /AI "..\Debug" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D
"_WINDLL" /D "_MBCS" /FD /EHsc /MTd /GS /Yu"stdafx.h"
/Fp"..\Debug/Standard2.pch" /Fo"..\Debug/"
/Fd"..\Debug/vc70.pdb" /FR"..\Debug/" /W4 /nologo /c /Zi /clr /TP
my linker settings£º
/OUT:"../Debug/Standard2.dll" /INCREMENTAL:NO /NOLOGO /DLL
/DEF:".\Truck_Dll.def"
/DELAYLOAD:"OleAcc.dll" /DEBUG /ASSEMBLYDEBUG /PDB:"..\Debug/OujiCont.pdb"
/SUBSYSTEM:WINDOWS /MACHINE:X86 /FIXED:No DelayImp.lib DelayImp.lib
my resource settings£º
/d "_DEBUG" /l 0x411 /fo"..\Debug/OujiCont.res"
thanks for your reply
Alex
But the cl.exe don't work if i use "/clr" option,
then i uncheck the "/clr" option, it work well.
Is there anything conflict within my settings?
And how to set it correctly?
my compiler settings£º
/Od /AI "..\Debug" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D
"_WINDLL" /D "_MBCS" /FD /EHsc /MTd /GS /Yu"stdafx.h"
/Fp"..\Debug/Standard2.pch" /Fo"..\Debug/"
/Fd"..\Debug/vc70.pdb" /FR"..\Debug/" /W4 /nologo /c /Zi /clr /TP
my linker settings£º
/OUT:"../Debug/Standard2.dll" /INCREMENTAL:NO /NOLOGO /DLL
/DEF:".\Truck_Dll.def"
/DELAYLOAD:"OleAcc.dll" /DEBUG /ASSEMBLYDEBUG /PDB:"..\Debug/OujiCont.pdb"
/SUBSYSTEM:WINDOWS /MACHINE:X86 /FIXED:No DelayImp.lib DelayImp.lib
my resource settings£º
/d "_DEBUG" /l 0x411 /fo"..\Debug/OujiCont.res"
thanks for your reply
Alex