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?
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
Re: Recognize MFC Base Class in a DLL
Yes please do! Just post the code on this site. Thanks!
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.