954,206 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using Resources in Visual C++

How do I use the resources I created in Visual C++. For eg, I created a dialog box. How do I call that in my program. :cry:

chound
Junior Poster
145 posts since Aug 2004
Reputation Points: 15
Solved Threads: 1
 
How do I use the resources I created in Visual C++. For eg, I created a dialog box. How do I call that in my program. :cry:


if you're using vc6, right click on the dialog, go to ClassWizard. It should prompt you to add a class. once you do that and name the class (something like CMyDialog) it will create the class and the associated files(Mydialog.cpp and mydialog.h). #include the header file in whatever file is used to call the class. To call the class, do something like this:
CMyDialog dlg;
dlg.DoModal();

That should get you up and running, hope this helps!

BlackDice
Light Poster
43 posts since Apr 2004
Reputation Points: 19
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You