Using Resources in Visual C++

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2004
Posts: 140
Reputation: chound is an unknown quantity at this point 
Solved Threads: 1
chound chound is offline Offline
Junior Poster

Using Resources in Visual C++

 
0
  #1
Aug 15th, 2004
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:
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 45
Reputation: BlackDice is an unknown quantity at this point 
Solved Threads: 0
BlackDice's Avatar
BlackDice BlackDice is offline Offline
Light Poster

Re: Using Resources in Visual C++

 
0
  #2
Aug 17th, 2004
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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4113 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC