Beginner GUI question
- From: Zapanaz <http://joecosby.com/code/mail.pl>
- Date: Fri, 07 Dec 2007 17:41:04 -0800
I am writing a program in C++ and I want to add a GUI. This program
will be more of an application and the GUI will probably get fairly
complex.
I am using Microsoft Visual C++, version 6.0 (very old).
I would just as soon do it visually in the resource editor. I build a
dialogue window and MSVC++ creates a .rct file.
But now how do I call/instantiate this from my program?
The basic call appears to be
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL,
DialogueProcess)
where IDD_DIALOG1 is the name I gave it in the resource builder
(original, huh?). When I try to compile though, IDD_DIALOG1 is
undefined.
Do I need to make a header file or .rc file by hand or something? Do
I reference the dialogue in a different way? Is it a setting in the
IDE somewhere? Am I going about this in altogether the wrong way?
***
<a little off topic>
Just for the sake of my pride if nothing else ... I'm not really a
beginner, I've programmed in C, C++ and Java for years and written
dozens of GUI applications in Java Swing. I googled for basic
tutorials on Windows GUI programming and found a pretty good one
(http://www.winprog.org/tutorial/) but the author dealt with this part
by hand-editing a .rc and resources.h file himself ... there aren't
really any docs on how he did this though.
--
Joe Cosby
http://joecosby.com/
Magister Mundi sum!
:: Currently listening to Cello Concerto No.1 in C Major Moderato, 1768, by Haydn, from "Cello Concertos"
.
- Follow-Ups:
- Re: Beginner GUI question
- From: Francis
- Re: Beginner GUI question
- From: Igor Tandetnik
- Re: Beginner GUI question
- From: David Wilkinson
- Re: Beginner GUI question
- Prev by Date: Robert, have you turned off all optimizations ?
- Next by Date: Re: Beginner GUI question
- Previous by thread: Thanks to Igor Tandetnik and Victor Bazarov
- Next by thread: Re: Beginner GUI question
- Index(es):
Relevant Pages
|