Click to See Complete Forum and Search --> : Recognize MFC Base Class in a DLL


kelnpet
April 9th, 1999, 09:20 AM
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
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

kelnpet
April 21st, 1999, 11:19 AM
Yes please do! Just post the code on this site. Thanks!

Thoughtcrime
April 21st, 1999, 12:06 PM
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.