Thread: Copying the resources between projects

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    Copying the resources between projects

    Hi,
    I was wondering if there was a way to import the dialogs, Icons, bitmap and all other resources from one project to another in MSVS .NET 2003. Thanks
    Amish

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    132
    You could always just include the .rc and .h files for the resources created in one project to another. Unless your meaning a more of "stealing" method from one program to another?

    Tyouk

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    I tried copying the rc and Resource.h file but when I compile the new program, I get a bunch of errors like ID not used and such and at one time it did not even want to open the Resource editor. I guess I will have to find some other way. Thanks
    Amish

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    With MSVC......

    Add the old projects resource script to the new project (Project->Add Existing Item). This will import all dialogs from the old project.

    In the resource view find the old script, open to the dialog section, drag and drop the required dialog to your new apps dialog section. (There sould be two scripts as root level items in this treeview, oldproject.rc and newproj.rc)

    Remove the rest of the old script by deleting / removing the file from the solution explorer view (file list).

    Rebuild all......add code....done.
    Last edited by novacain; 01-20-2005 at 11:26 PM.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling Resources
    By The Brain in forum Windows Programming
    Replies: 2
    Last Post: 10-22-2006, 10:52 AM
  2. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 05:35 PM
  3. Storing resources into a single file
    By LuckY in forum Game Programming
    Replies: 20
    Last Post: 08-14-2004, 11:28 PM
  4. Copying Bitmap Resources without Creating HDC's
    By bartybasher in forum Windows Programming
    Replies: 1
    Last Post: 08-02-2004, 06:35 AM
  5. Adding resources
    By nima_ranjbar in forum Windows Programming
    Replies: 0
    Last Post: 04-14-2002, 11:36 PM