CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2001
    Posts
    30

    How to reuse resource (.rc) in another app

    How to do you reuse a resource (.rc)/(dlgs and controls properties) file that you have created in an application? what if you wanted to use the same dialogs and controls in another application? I know that all this information is in the resource.h and the program_name.rc files, but how can I reuse those same files in another application?

    Any help would be greatly appreciated, thanks.

  2. #2
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664
    Copy it or cross-path include it (adding it to your project without copying it).

  3. #3
    Join Date
    Sep 2001
    Posts
    30
    How do I do that? thank you!

  4. #4
    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    762
    Originally posted by mrcomplex
    How do I do that? thank you!
    Highlight the resource file, ctrl + c

    Go into folder of other program, ctrl + p

    Or including it into your other program from its current directory...

  5. #5
    Join Date
    Sep 2001
    Posts
    30
    But what if I wanna use the resource.h (and its .rc) that I already have in program X, and in addition to using this resource.h, I also wanna use the resource.h (and its .rc) of program Y. How can I use two different resource.h and .rc files in the same program?

  6. #6
    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    762
    Originally posted by mrcomplex
    But what if I wanna use the resource.h (and its .rc) that I already have in program X, and in addition to using this resource.h, I also wanna use the resource.h (and its .rc) of program Y. How can I use two different resource.h and .rc files in the same program?
    rename......

  7. #7
    Join Date
    Oct 2002
    Location
    Right Behind you
    Posts
    238
    **** kasracer its a small world!
    "3 out of every 4 people make up 75% of the population"
    ---------------------------------------------
    "If the World didn't suck, we would all fall off"
    ---------------------------------------------
    "No pancake is so flat that it doesnt have two sides"
    ---------------------------------------------

  8. #8
    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    762
    Originally posted by morrowasted
    **** kasracer its a small world!
    uh??

  9. #9
    Join Date
    Sep 2001
    Posts
    30
    Quote Originally Posted by kasracer
    rename......
    Rename? I thought I could only use 1 resource.h and .rc file in a project. Can I use more than one resource.h and .rc files? what names would work? resource2.h? xxxx2.rc? Will the compiler know to look into this files for more resources? Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured