Hi,
I'm tryng print a message with a button in Dev-C++, but i only get error,
look my code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
VOID Output( char *msg, DWORD Buttons )
{
MessageBox( NULL, msg, "test" , Buttons );
}
int WINAPI WinMain() {
Output("Test\n", MB_ICONERROR );
exit(1);
}
When i compile, it show me 0 errors but in Links is showed
E:\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain@16'
And i can't print on the windows. :/
Domebody know why ?? What am i doing wong ??
Thkz.
[ ]'s
|