Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Win32 GUI CreateWindowEx() (http://www.programmingforums.org/showthread.php?t=14901)

d_heyzie Jan 8th, 2008 8:43 PM

Win32 GUI CreateWindowEx()
 
3 Attachment(s)
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.

Ancient Dragon Jan 8th, 2008 11:33 PM

Re: Win32 GUI CreateWindowEx()
 
>>im not gonna use code tags cause i just think 120 or so lines in the .cpp file is too much.
Hallelujah :) :)

d_heyzie Jan 9th, 2008 12:46 AM

Re: Win32 GUI CreateWindowEx()
 
hahaha, i fixed it... turns out it was a brace which was just in the wrong place. Sorry for wasting your time, thankyou to anyone who took the time to look.


All times are GMT -5. The time now is 12:35 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC