I'm attempting to learn Windows programming, and I'm still at VERY basic levels. Basically, this is the code so far:
BOOL MainDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
NULL, (DLGPROC)MainDialogProc, 0);
and the Jwin.RC file is the file that Borland created for me when I made a default dialog box without touching any settings. (It defaults to 3 buttons, OK, CANCEL, and HELP... and I didn't touch anything within it.)
Anyways, it gives me an error of:
Declaration Terminated Incorrectly
at the second line of my .rc file, which follows:
#define IDD_DIALOG1 1
IDD_DIALOG1 DIALOG 0, 0, 240, 120
EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_CONTEXTHELP
STYLE DS_MODALFRAME | DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Sans Serif"
CONTROL "OK", IDOK, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 186, 6, 50, 14
CONTROL "Cancel", IDCANCEL, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 186, 26, 50, 14
CONTROL "Help", IDHELP, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 186, 46, 50, 14
This doesn't make any sense to me, as this is the code BORLAND just made for me, and it's BORLAND that's compiling! Not sure why it's giving me an error on it's own code. This would really help me out, so any help is appreciated!