I am working on learning the Windows API and am using mingw as my compiler with Code::Blocks as my IDE.
I have run into an issue with using the wWinMain
function. I used the program located here: link text.
It compiles fine in VS C++ 2008 Express, but when using mingw I get the error:
undefined reference to WinMain@16
I have figured out what the problem is (I think). By replacing the wWinMain
with just Winmain
and the string pointer PWSTR
with LPSTR
, it compiles perfectly. My question is, how can I fix this? And if not, is not using Unicode that big of a deal?