Original Post
why doesnt this work:
main_instance is the instance of the main window and hwnd is the HWND of the main window. IDD_DIALOG1 is my dialog in resource, and ToolDialogProc is name of my dialogproc.
but it just doesnt work, it gives a NULL to htool_dialog.
oh yeah and getlast() error returns 0 wich means no error..
any ideas why? :/
htool_dialog = CreateDialog(main_instance,MAKEINTRESOURCE(IDD_DIALOG1),hwnd,(DLGPROC) ToolDialogProc);