I just started Win32 API with my Borland C++ compiler. I just want to load a dialog box... I don't want to include any function to the buttons what so ever. I just want to see the dialog box... I tried to compile the code from sunlights windows tutorial and it doesn't bring up the dialog box... heres the code:
Code:#include <windows.h> #include <tchar.h> #include "char.h" BOOL MainDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { return FALSE; } int _tmain(void) { DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(DIALOG2), NULL, (DLGPROC)MainDialogProc, 0); return 0; }



LinkBack URL
About LinkBacks



