Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding user interface code to new MFC app

Status
Not open for further replies.

MrPeds

Programmer
Jan 7, 2003
219
GB
Hi,

I am converting an MFC application into an MFC extension DLL.

I have used the VC++ AppWizard to create the basic code for the dll.

What i'd like to know is how I add the icons and user interface items contained in the resource script from the original file, and place this into the new code.

I know you can add the file, but can you add the individual items into the new resource script????

Thanks,

MrPeds
 
MrPeds,

In the VC++ IDE Resource Editor you can copy/paste items like Dialogs,Icons,Bitmaps resources from one project into another.

Also, .rc files are just text files. If your careful you can edit them directly. You will notice that they include "resource.h" from which they use symbols that have been defined.

-pete
 
I think another solution is to start an empty project and add the code you need, then extend it.
 
MrPeds said
I think another solution is to start an empty project and add the code you need, then extend it.

What? I don't get that. You just described the normal "new" project developement steps.

-pete
 
ignore me, i've just realised I typed in the wrong text to the wrong thread!

MrPeds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top