|
-
April 9th, 1999, 09:20 AM
#1
Recognize MFC Base Class in a DLL
I am trying to import a dialog within a DLL to an exe. The problem is that when I call DoModal() within the exe for my DLL dialog, it does not automatically call OnInitDialog() for that dialog. It does it when I put that dialog class directly in the exe. It's almost like it doesn't recognize my dialog deriving from CDialog. I have the AFX_EXT_CLASS tag on my dialog class. It calls my DoModal. What am I doing wrong?
-
April 21st, 1999, 10:01 AM
#2
Re: Recognize MFC Base Class in a DLL
I just finished creating a Extension dll with one dialog in it. I then created a EXE and was able to create and call domodal on the dialog. I added a break to the Oninitdialog method and it hit it. If you want me to send you a sample of the code, reply and I will do so.
Thanks,
John O
-
April 21st, 1999, 11:19 AM
#3
Re: Recognize MFC Base Class in a DLL
Yes please do! Just post the code on this site. Thanks!
-
April 21st, 1999, 12:06 PM
#4
Re: Recognize MFC Base Class in a DLL
This is my first time doing this. If you could send me your e-mail, Ill just send you the zips. I will try to get the posts up to the site later.
John O.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|