howdy.. sorry bout not givin' much info about my problem... was in a rush..... I've done more trial and error and it seems my problem is just getting the Dialog Box to appear when the 'X' button is clicked to close the window....
it seems in my code I wrote
and i needed to pass hInstance
DialogBox(hwnd, MAKEINTRESOURCE(IDD_Exit), NULL,
however i don't know how to pass an instance of the window in the callback function... other than that my program seems to run fine.... i've tested writing the second above code in the WINAPI section and it runs fine... except the point of my program is not to display the dialog box at startup....
DialogBox(hInstance, MAKEINTRESOURCE(IDD_Exit), NULL,
P.S. thnx for the info about the callback needing a return.....i missed that