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. .NET (Core and Framework)
  4. Migrating VC++6 Dialog classes

Migrating VC++6 Dialog classes

Scheduled Pinned Locked Moved .NET (Core and Framework)
c++csharpvisual-studiohelptutorial
3 Posts 2 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
    Phil C
    wrote on last edited by
    #1

    Once upon a time (VS 6) I used to be able to copy a dialog resource from another project into my current project. As I get my feet wet with VS.NET 2002 I'm lost trying to figure out how to do it. From what I gather, I can "Add Existing Item" from the project menu, but this ends up incorporating the whole RC file from my other project including any other dialogs, bmps, icons etc. What I now have is a xyzDlg.cpp a xyzDlg.h and the dialog resource itself located in a .rc file. How on earth can I make a COPY of this dialog item so I can use it for my .NET app? Note, I need to copy this resource not incorporate anything from the other project. I can't risk damaging the other VS6 project and it's (the other VS6.0 project) going to be archived off-line as soon as I have a copy so I don't somehow currupt it. I feel awfully stupid, this should be easy. Help? PAC

    R 1 Reply Last reply
    0
    • P Phil C

      Once upon a time (VS 6) I used to be able to copy a dialog resource from another project into my current project. As I get my feet wet with VS.NET 2002 I'm lost trying to figure out how to do it. From what I gather, I can "Add Existing Item" from the project menu, but this ends up incorporating the whole RC file from my other project including any other dialogs, bmps, icons etc. What I now have is a xyzDlg.cpp a xyzDlg.h and the dialog resource itself located in a .rc file. How on earth can I make a COPY of this dialog item so I can use it for my .NET app? Note, I need to copy this resource not incorporate anything from the other project. I can't risk damaging the other VS6 project and it's (the other VS6.0 project) going to be archived off-line as soon as I have a copy so I don't somehow currupt it. I feel awfully stupid, this should be easy. Help? PAC

      R Offline
      R Offline
      ralfoide
      wrote on last edited by
      #2

      Under VS6, I simply used to open both RC files (the current project and the one to import from), then simply Control-C the dialog template and Control-V it into the new RC. Then copyied the .cpp/.h manually and inserted in the project manually. I believe that may work with VS7 too but I haven't tried in a while.

      P 1 Reply Last reply
      0
      • R ralfoide

        Under VS6, I simply used to open both RC files (the current project and the one to import from), then simply Control-C the dialog template and Control-V it into the new RC. Then copyied the .cpp/.h manually and inserted in the project manually. I believe that may work with VS7 too but I haven't tried in a while.

        P Offline
        P Offline
        Phil C
        wrote on last edited by
        #3

        Actually, it kind of works and it kind of doesn't. I've been playing all day and have got the dialog resource in, but it's different. With VC6 you could open the other rc file, hit copy then paste directly into the resource tab in class wizard. With the new VC.NET all I've been able to figure out so far is open both old and new rc file in the editor and do a copy/paste. The bad part is I still haven't been able to figure out how to link the cpp and h files with that dialog resource. If you run their wizard and tell it to use the old cpp and h files it just tacks on a new class at the bottom of each file resulting in two sets of implementations and declarations. Obviously there has to be a way to do it, but it sure is kicking my behind :( PAC

        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