Click here to Skip to main content
15,910,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get File Name Pin
Peter Liddle2-Mar-02 22:01
Peter Liddle2-Mar-02 22:01 
GeneralSearch dialog and CEdit selection Pin
Kuniva2-Mar-02 0:38
Kuniva2-Mar-02 0:38 
GeneralRe: Search dialog and CEdit selection Pin
Mazdak2-Mar-02 2:41
Mazdak2-Mar-02 2:41 
GeneralICM Profiles.. Pin
Neha1-Mar-02 23:20
Neha1-Mar-02 23:20 
GeneralRe: ICM Profiles.. Pin
Nish Nishant1-Mar-02 23:37
sitebuilderNish Nishant1-Mar-02 23:37 
GeneralRe: ICM Profiles.. Pin
Jeremy Falcon2-Mar-02 8:02
professionalJeremy Falcon2-Mar-02 8:02 
GeneralRe: ICM Profiles.. Pin
Jeremy Falcon4-Mar-02 7:43
professionalJeremy Falcon4-Mar-02 7:43 
GeneralMFC Dialog called dynamically Pin
1-Mar-02 22:51
suss1-Mar-02 22:51 
I have a need to do the following item and could use some help setting it up. I have a basic MFC application running that includes a prebuilt MFC dialog derived class for allowing the user to input data. this all works fine. I need, however, to allow the user to create their own MFC based dialog box, and then allow them to call that dialog box at runtime without the primary application being aware of the dialogs design. So what I have done is this...

in main app, when i select menu item 'test' it looks for a dll named 'testing.dll', and if it finds it, then it loads the dll, finds a function called Create() and attempts to run it. this works fine.

in the create() function, it is a simple test for now.

char gString[255] = "";
void Create()
{
CMyDialog d;
if (d,DoModal() == IDOK)
strcpy(gString,"everything worked fine");
}


all of the exporting works fine, it does loading the dll, finding the create function, retrieving the gString variable etc... the only thing that doesnt work as expected, is in the DoModal() call of the dialog class. the dialogbox appears, and then the entire program crashes. This doesnt happen if i create a simple dialog box that is not CDialog derived.

Am I missing something on MFC? is there an issue with trversing a dll boundary with the MFC.

thanks in advance for any info.
GeneralRe: MFC Dialog called dynamically Pin
Nish Nishant1-Mar-02 22:56
sitebuilderNish Nishant1-Mar-02 22:56 
GeneralRe: MFC Dialog called dynamically Pin
1-Mar-02 23:53
suss1-Mar-02 23:53 
GeneralRe: MFC Dialog called dynamically Pin
Nish Nishant2-Mar-02 0:11
sitebuilderNish Nishant2-Mar-02 0:11 
GeneralRe: MFC Dialog called dynamically Pin
Tomasz Sowinski2-Mar-02 1:37
Tomasz Sowinski2-Mar-02 1:37 
GeneralRe: MFC Dialog called dynamically Pin
2-Mar-02 5:27
suss2-Mar-02 5:27 
GeneralAbout CTypedPtrList class--"new" and "delete".. Pin
anju1-Mar-02 22:45
anju1-Mar-02 22:45 
Questionhow to get the whole URLs form the intetnet shortcuts(the file in c:\windows\history)? Pin
benben1-Mar-02 21:47
benben1-Mar-02 21:47 
AnswerRe: how to get the whole URLs form the intetnet shortcuts(the file in c:\windows\history)? Pin
Nish Nishant1-Mar-02 23:00
sitebuilderNish Nishant1-Mar-02 23:00 
AnswerRe: how to get the whole URLs form the intetnet shortcuts(the file in c:\windows\history)? Pin
2-Mar-02 0:23
suss2-Mar-02 0:23 
QuestionDeriving classes thru ClassWizard? Pin
Maverick1-Mar-02 21:42
Maverick1-Mar-02 21:42 
AnswerRe: Deriving classes thru ClassWizard? Pin
Mazdak1-Mar-02 21:52
Mazdak1-Mar-02 21:52 
AnswerRe: Deriving classes thru ClassWizard? Pin
Tomasz Sowinski2-Mar-02 1:44
Tomasz Sowinski2-Mar-02 1:44 
GeneralRe: Deriving classes thru ClassWizard? Pin
Maverick2-Mar-02 3:14
Maverick2-Mar-02 3:14 
GeneralRe: Deriving classes thru ClassWizard? Pin
14-Mar-02 23:38
suss14-Mar-02 23:38 
GeneralProblem in Hijri date in Win2000 ! Pin
Hadi Rezaee1-Mar-02 20:12
Hadi Rezaee1-Mar-02 20:12 
GeneralA small tip for capturing focus in Win2K Pin
Nish Nishant1-Mar-02 19:40
sitebuilderNish Nishant1-Mar-02 19:40 
GeneralBeginning MFC (Prosise) Part III - Now What? :: C++ Pin
valikac1-Mar-02 14:49
valikac1-Mar-02 14:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.