Beginner GUI question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





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"
.



Relevant Pages

  • Re: Implementing my own Eventloop
    ... So far I've managed it to run under Linux/GTK+ and I'm now evaluating if it can also be implemented using java. ... Is it possible to start an second event loop so that the GUI is responsive again? ... Some API allow an application developer to open a dialogue box from the Event Dispatch Thread and wait for it to be closed. ...
    (comp.lang.java.gui)
  • Re: Gnu/Linux dialogue boxes in python
    ... your program has a GUI but has problems opening even a tiny part ... bit where all the import statements happen, it can popup a stock dialogue ... informing the user about what they need to install first. ... white on black (the usual terminal colours) does *not* invite a user's ...
    (comp.lang.python)
  • Re: Beginner GUI question
    ... I would just as soon do it visually in the resource editor. ... dialogue window and MSVC++ creates a .rct file. ... dozens of GUI applications in Java Swing. ... as few as possible in the rc file and create windows and components at ...
    (microsoft.public.vc.language)
  • Re: Beginner GUI question
    ... I would just as soon do it visually in the resource editor. ... dialogue window and MSVC++ creates a .rct file. ... dozens of GUI applications in Java Swing. ... If you create an MFC application using the Wizard, you will have a "working" application right out of the box. ...
    (microsoft.public.vc.language)
  • Re: Gnu/Linux dialogue boxes in python
    ... your program has a GUI but has problems opening even a tiny part ... bit where all the import statements happen, it can popup a stock dialogue ... informing the user about what they need to install first. ... Or maybe it's setup.py's job to create a suitable distribution: ...
    (comp.lang.python)