Okay, this is evil.
What happened is that you have included an (unmanaged) windows header file that has a macro defined like this
#define SetCurrentDirectory(...) SetCurrentDirectoryA()
The same thing happens with calls to MessageBox. The solution is to undef the macros:
#undef MessageBox...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.