CreateDirectoryA can not be resolved

Joined
Dec 5, 2006
Messages
13
Reaction score
0
Hello everyone,


I am developing a DLL project for Windows Mobile (C/C++). I have removed the UNICODE and _UNICODE definition from project --> settings. But build the following code, there is an error (compile could pass, but link can not pass),

error LNK2019: unresolved external symbol CreateDirectoryA referenced in function foo

Code:
#include <winbase.h>

int foo()
{
 CreateDirectory (L"hello", NULL);
 CreateDirectoryA ("hello", NULL);
 CreateDirectoryW (L"hello", NULL);

 return 0;
}


thanks in advance,
George
 
Back
Top