Mail Archives: djgpp/1998/05/04/02:03:51
etunstal AT XXXbellatlantic DOT net wrote in message
<6ii8vk$36e$1 AT nnrp1 DOT dejanews DOT com>...
>No matter what I do, I can't seem to get RSXNTDJ working. I've read
>RSXNTDJ.HLP so many times I've lost count. Here is how I have things set
up:
>
>test.c:
>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
> LPSTR lpCmdLine, int nCmdShow)
>
>{
> MessageBox (NULL, "Hello Win32", "First App", MB_OK);
> return 0;
>}
>
>running
> gcc -Zwin32 test.c -o test.exe
>
>gives
>
>test.c:1: parse error before `WinMain'
>test.c:1: parse error before `hInstance'
>test.c: In function `WinMain':
>test.c:4: `NULL' undeclared (first use this function)
>test.c:4: (Each undeclared identifier is reported only once
>test.c:4: for each function it appears in.)
>test.c:4: `MB_OK' undeclared (first use this function)
>
>
>No matter what I do, I get the error messages listed above. Can someone
PLEASE
>tell me what I'm doing wrong?
>
>EMT
Add line:
#include <windows.h>
before your WinMain line.
Regards,
Tanes
- Raw text -