CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Posts
    116

    Import Dialog from other VS2003 project

    I have questions on how to properly import a dialog from one project to another project using Visual Studio 2003.
    Assume I have a dialog called IDD_DIALOG_IMPORT at a TestDialog project and I want copy this dialog to another TestDialog2 project.
    Is this possible? I tried the copy function but it can only be copied to the same project but not to other project.
    Attached is the screenshot in zip file for reference.
    Attached Files Attached Files

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Import Dialog from other VS2003 project

    Open the .rc file of the project to copy from in the workspace of the project to copy to.
    Then you could just drag-n-drop amy resource from this .rc to your "destination" project.
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2009
    Posts
    116

    Re: Import Dialog from other VS2003 project

    I tried to drag and drop but it doesn't work. Nothing being copy over to another project rc Dialog node folder.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Import Dialog from other VS2003 project

    Quote Originally Posted by PHChang View Post
    I tried to drag and drop but it doesn't work. Nothing being copy over to another project rc Dialog node folder.
    Then you did something wrong.
    Well, if you don't believe ne then have a look at the MSDN (well, it is for VS2005, but it was the same in VC++6.0 and it is the same in VS2010, VS2015)
    Anyway, there are a lot of discussions about thÃ*s problem: https://www.google.ch/search?q=how+t...hrome&ie=UTF-8
    Victor Nijegorodov

  5. #5
    Join Date
    Apr 2009
    Posts
    116

    Re: Import Dialog from other VS2003 project

    Thanks for your suggestion.
    I use another method to copy over the dialog.
    What I did was I copy the rc file from source project to destination project.
    After that, I open up the rc file that was copied over, my project now contains 2 rc file.
    Then, I copy the dialog over to my destination project.
    In this case, IDD_DIALOG_IMPORT is copied from source dialog node (TestDialog.rc) to destination dialog node (TestDialog2.rc).
    Attached is the screenshot.
    Attached Images Attached Images  

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