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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top