943,696 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5915
  • C++ RSS
Aug 15th, 2004
0

Using Resources in Visual C++

Expand Post »
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:
Similar Threads
Reputation Points: 15
Solved Threads: 1
Junior Poster
chound is offline Offline
143 posts
since Aug 2004
Aug 17th, 2004
0

Re: Using Resources in Visual C++

Quote originally posted by chound ...
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!
Reputation Points: 19
Solved Threads: 0
Light Poster
BlackDice is offline Offline
43 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Helping for initialization
Next Thread in C++ Forum Timeline: need help in creating class string





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC