strange c++ compiler error
-
I don't know if anyone will be able to help me, but I have a real strange error with c++ on Visual Studio on my XP. I have a code fragment: if( !Directory::Exists(out1)) Directory::CreateDirectory(out1); Exists compiles with no problem but CreateDirectory gives me the following error: error C2039 'CreateDirectoryA' is not a member of 'System::IO:Directory' When I put the cursor on CreateDirectory, it correctly identifies it as System::IO:CreateDirectory(System::String __gc*). Then when I compile Exists goes through OK, but CreateDirectory turns into the ANSI version of CreateDirectory which it then claims isn't part of the class (as it probably isn't). Who asked the compiler to turn CreateDirectory into CreateDirectoryA? If anyone has any suggestions, I'd be very grateful. Thanks, Ilan
-
I don't know if anyone will be able to help me, but I have a real strange error with c++ on Visual Studio on my XP. I have a code fragment: if( !Directory::Exists(out1)) Directory::CreateDirectory(out1); Exists compiles with no problem but CreateDirectory gives me the following error: error C2039 'CreateDirectoryA' is not a member of 'System::IO:Directory' When I put the cursor on CreateDirectory, it correctly identifies it as System::IO:CreateDirectory(System::String __gc*). Then when I compile Exists goes through OK, but CreateDirectory turns into the ANSI version of CreateDirectory which it then claims isn't part of the class (as it probably isn't). Who asked the compiler to turn CreateDirectory into CreateDirectoryA? If anyone has any suggestions, I'd be very grateful. Thanks, Ilan