Copying the resources between projects

This is a discussion on Copying the resources between projects within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I was wondering if there was a way to import the dialogs, Icons, bitmap and all other resources from ...

  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,859
    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, 11: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-15-2004, 12:28 AM
  4. Copying Bitmap Resources without Creating HDC's
    By bartybasher in forum Windows Programming
    Replies: 1
    Last Post: 08-02-2004, 07:35 AM
  5. Adding resources
    By nima_ranjbar in forum Windows Programming
    Replies: 0
    Last Post: 04-15-2002, 12:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21