Using existing dialogs in another Visual Studio C++ project



  • I have an existing Project in VS C++ containing a dialog based MFC application. In this project there are some dialogs (also as classes) which I would like to use in another dialog based MFC application, i.e. in another VS C++ project.

    How could I do this without getting into trouble with ambiguous IDs for the resources? Is there a possibility to import dialogs from other projects?

    I suppose there should be some way how several developers could program a GUI in their own projects and to put it later together into one GUI. Any ideas?

    Thanks a lot
    Jens



  • You can open the Resouce where your old dialog is in the new project. Then you can copy the dialog via drag & drop but hold down the ctrl-key otherwise you move it.

    With the IDs there should be no problem, but look at each one, sometimes the name is lost.

    I made it this way several times and everything is okay. 🙂



  • Open this 2 Projects in an workspace. now you can copy the dialogresource.


Anmelden zum Antworten