Here's a good one for you all. I'm making a very (VERY) simple Win32 application that is supposed to display a message box. And it won't. I know good and well that <windows.h> is the header to use when using MessageBox(), so I'm getting REALLY confused.
Code:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Test", "Test", MB_OK);
return(0);
}
Yes, the linker is set /SUBSYSTEM:WINDOWS. I checked that one already. The error is:
main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16
Help?