Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
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
Old Jan 8th, 2008, 11:33 PM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
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
Ancient Dragon is offline   Reply With Quote
Old Jan 9th, 2008, 12:46 AM   #3
d_heyzie
Newbie
 
Join Date: Jan 2006
Posts: 22
Rep Power: 0 d_heyzie is on a distinguished road
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.
d_heyzie is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
question regarding GUI factory. rwm C++ 3 Aug 17th, 2007 8:58 AM
Which is easier for making a GUI program? 357mag Java 6 Jul 29th, 2007 5:08 PM
win32 help files, where to get? hervens48 C++ 5 May 25th, 2006 3:07 AM
Win32; wrapping it up jayme C++ 4 Mar 21st, 2006 3:03 PM
Question about Win32 Programming brokenhope C++ 15 May 3rd, 2005 7:55 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:43 PM.

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