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:

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.