[Help]Weird Error?

Posts 1–5 of 5 · Page 1 of 1
[Help]Weird Error?
EDIT: This is on a WIN32 Project. Windows Application.

I'm getting a weird error. This is my only code:
[php]#include <Windows.h>

bool test = false;

void testvoid() {
if(test == false) {
MessageBox(0, TEXT("The Text"), TEXT("The Title"), MB_OK);
}
}[/php]

This is my error:
[php]MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup[/php]

WTF is going on?
In project properties, change your project build type to Windows (something called that, i think it's under Project Properties > Linker)
nvm .
Win32 project without a main function. Tsk tsk.

You forgot to make the main function, in this case it's WinMain.
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us