Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to reuse a dialog resource in another project

How to reuse a dialog resource in another project

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestionlearning
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Electronic75
    wrote on last edited by
    #1

    Hi, In some MFC projects I spend quite a lot of time designing a dialog box and I need it in another project I can copy paste class codes but I have to redesign the dialog resource. I tried to copy a text segment that seemed was about the dialog I was interested in(there were a few lines of empty space then IDD_MY_DIALOG_OF_INTEREST and some text and again some lines of empty space) from .rc file of another project to another project but after that the latter project couldn't load any of its resources until I deleted the inserted segment. Is there any way? regards :) ,

    S 1 Reply Last reply
    0
    • E Electronic75

      Hi, In some MFC projects I spend quite a lot of time designing a dialog box and I need it in another project I can copy paste class codes but I have to redesign the dialog resource. I tried to copy a text segment that seemed was about the dialog I was interested in(there were a few lines of empty space then IDD_MY_DIALOG_OF_INTEREST and some text and again some lines of empty space) from .rc file of another project to another project but after that the latter project couldn't load any of its resources until I deleted the inserted segment. Is there any way? regards :) ,

      S Offline
      S Offline
      SandipG
      wrote on last edited by
      #2

      I do it this way 1. Copy the RC file from which you want to reuse the dialog to new Project folder 2. Add the copied rc file to your new project. 3. It will show you warning that there can be only one rc active but just say "ok" on it. 4. Now I just open the resource view and drag the dialogs or resources that you want from copied rc file to the new projects file. 5. After you are done just remove the copied rc file from the project. I hope it helps. I do this way because i don't have to bother about the formatting in rc file.

      Regards, Sandip.

      T 1 Reply Last reply
      0
      • S SandipG

        I do it this way 1. Copy the RC file from which you want to reuse the dialog to new Project folder 2. Add the copied rc file to your new project. 3. It will show you warning that there can be only one rc active but just say "ok" on it. 4. Now I just open the resource view and drag the dialogs or resources that you want from copied rc file to the new projects file. 5. After you are done just remove the copied rc file from the project. I hope it helps. I do this way because i don't have to bother about the formatting in rc file.

        Regards, Sandip.

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        i published above on my programmig tips site with your name offcourse. hope this doesn't present any problem !

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

        S 1 Reply Last reply
        0
        • T ThatsAlok

          i published above on my programmig tips site with your name offcourse. hope this doesn't present any problem !

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

          S Offline
          S Offline
          SandipG
          wrote on last edited by
          #4

          Of course not Alok. Thanks.

          Regards, Sandip.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups