I used a .rc file, and with the following code,
Code:
#include <windows.h>
#include "d:\Rscript.rc"
bool MainDialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return false;
}
int main()
{
DialogBoxParam (GetModuleHandle(NULL),MAKEINTRESOURCE (IDD_DIALOG1),NULL,(DLGPROC) MainDialogProc,0);
return (0);
}
I get the following errors.
Compiling...
Winmain.cpp
d:\rscript.rc(20) : error C2143: syntax error : missing ';' before 'constant'
d:\rscript.rc(20) : error C2501: 'LANGUAGE' : missing storage-class or type specifiers
d:\rscript.rc(20) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Trying.exe - 3 error(s), 0 warning(s)
What's this error, and how do I fix this ?
Thanks, in advance.