View Single Post
Old Jan 8th, 2008, 8:43 PM   #1
d_heyzie
Newbie
 
Join Date: Jan 2006
Posts: 22
Rep Power: 0 d_heyzie is on a distinguished road
Win32 GUI CreateWindowEx()

I'm currently working through a tutorial on Win32 GUI, and im stuck. Im attempting to create a window which has a menu with "File" and "Help" popups with the "About > Help" menu opening a dialog box.
To start with i had some problems with syntax errors in my resource file which were strangely fixed when i added some missing braces to the Dialog Box Procedure Function, after that was sorted im now getting my message box telling me that my window creation failed.
Ive checked the parameters of the CreateWindowEx() function on MSDN and the tutorial im using and i think theyre right, ive also checked that ive passed the right class name. Because im new to this im already out of ideas and need help.

All 3 files are attached .txt (resource file, .rc isnt a valid extension here), .h, and .cpp, because im not sure where the problem is.

im not gonna use code tags cause i just think 120 or so lines in the .cpp file is too much.

Any help is appreciated.
Attached Files
File Type: txt resource.txt (697 Bytes, 1 views)
File Type: cpp main.cpp (3.5 KB, 5 views)
File Type: h resource.h (134 Bytes, 0 views)
d_heyzie is offline   Reply With Quote