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. Copying classes between projects

Copying classes between projects

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 5 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.
  • P Offline
    P Offline
    pgs
    wrote on last edited by
    #1

    Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul

    M D A G 4 Replies Last reply
    0
    • P pgs

      Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You'll either need to copy the entire .RC file, or copy/paste the relevant pieces from one .RC file to the other.

      1 Reply Last reply
      0
      • P pgs

        Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        there's an article here on CP that talks about that, but I don't know what to search for. one way (I think) could be to copy-n-paste the dialog between 2 instances of VC and copy-n-paste the dialog files and insert them into you new project. but you have to be carefull of the resource ID numbers.


        Maximilien Lincourt "Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )

        1 Reply Last reply
        0
        • P pgs

          Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul

          A Offline
          A Offline
          AlexO
          wrote on last edited by
          #4

          If you are really lazy like me :) - create intermediate empty solution and add old project and new project to it. In resource view just drug the resource from one project to another, holding Ctrl key.

          1 Reply Last reply
          0
          • P pgs

            Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #5

            The most reliable way I've found of doing this is by hand, using the text editor. Copy/paste the resources out of the .RC file and into the destination. Don't forget to copy/paste the DESIGNINFO section if there is one. You mentioned menus; you'll have to copy the menu as well. Copy the resource ID's from the original resource.h into the destination. You may need to renumber the resource ID's so that they don't conflict. The IDE (VC6, VS.NET 2002, and VS.NET 2003) will let you cut/paste controls, but it's not terribly smart about whole dialogs.


            Software Zen: delete this;

            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