c++ - How can I use a dialog (resource file) on a new VS 2013 project from a different VS 2013 project? -
let me first not want copy of resource file on 2 projects (i have seen question that).
using windows 7, ms vs 2013, c++, mfc.
these 2 projects referencing part of same solution.
i have dialog has been created rc/h/cpp files works in 1 project (project a). want able open dialog routine in separate project (project b). project b has gui button when clicked wish dialog project brought up.
i have included reference project in properties of project b.
i have included (#include) rc file path project in rc file project b (which takes care of resource file, , definition numbers resource file not overlap).
i have included path (from project a) class controls dialog in project b (in file contains event handler bring dialog).
there no errors setup have, doesn't anything. create dialog , try domodal
on anywhere in project (where works) , nothing happens, can click button many times , never brings up.
i cannot provide of code on this, hope enough information give me kind of clue. lost of now. thank you.
ex of routine:
#include "dialogiwant.h" ... void onpushbuttononprojectb () { cdialogiwant dialog; // cpp/h/rc in other project dialog.domodal(); // nothing comes }
resource files able use #inclde
same other c++ file. have dialog resource in separate file, , include in .rc
files of both projects.
you need share resource id definitions, in resource.h
.
Comments
Post a Comment