G Guest Mar 5, 2007 #2 I have to add that I cannot use using namespace System; at the top since I'm using #include <windows> needed by a third party, unmanaged library.
I have to add that I cannot use using namespace System; at the top since I'm using #include <windows> needed by a third party, unmanaged library.
S Sheng Jiang[MVP] Mar 5, 2007 #3 put windows.h in your stdaffx.h and above any using statement undef SDK macros if necessary
B Ben Voigt Mar 5, 2007 #4 Joachim said: I have to add that I cannot use using namespace System; at the top since I'm using #include <windows> needed by a third party, unmanaged library. Click to expand... So put "using namespace System;" further down your program, maybe inside your own namespace, so it won't conflict with foreign header files.
Joachim said: I have to add that I cannot use using namespace System; at the top since I'm using #include <windows> needed by a third party, unmanaged library. Click to expand... So put "using namespace System;" further down your program, maybe inside your own namespace, so it won't conflict with foreign header files.
K Kevin Frey Mar 7, 2007 #5 Or just explicitly qualify the type name System::String, depending on how often you use it.