J
Jon
I am creating a mix managed/unmanaged C++ project.
Since some of the *.cpp's do not use managed extension,
the project option of [Use managed extensions] has to be set to 'no'.
( Note that using '#pragma unmanaged' in a managed *.cpp file:
1) slows down compilation,
2) and severely pollutes the exported managed namespaces. )
This forces me to manually add #using statements.
I avoided configuration dependent statements like #using "..\debug\ClassLibrary1.dll" by:
1) setting the following project option
[Resolve #using References] = "$(OutDir)"
2) and modifying stdafx.cpp as follows:
//file stdafx.cpp
#using <mscorlib.dll> //add system references here and in the reference folder
#using "ClassLibrary1.dll" //add project references here and in the reference folder
#include "stdafx.h"
Is there a simpler way?
Since some of the *.cpp's do not use managed extension,
the project option of [Use managed extensions] has to be set to 'no'.
( Note that using '#pragma unmanaged' in a managed *.cpp file:
1) slows down compilation,
2) and severely pollutes the exported managed namespaces. )
This forces me to manually add #using statements.
I avoided configuration dependent statements like #using "..\debug\ClassLibrary1.dll" by:
1) setting the following project option
[Resolve #using References] = "$(OutDir)"
2) and modifying stdafx.cpp as follows:
//file stdafx.cpp
#using <mscorlib.dll> //add system references here and in the reference folder
#using "ClassLibrary1.dll" //add project references here and in the reference folder
#include "stdafx.h"
Is there a simpler way?