CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    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?


  2. #2
    Guest

    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


  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: Recognize MFC Base Class in a DLL

    Yes please do! Just post the code on this site. Thanks!


  4. #4
    Join Date
    May 1999
    Posts
    1

    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
  •  





Click Here to Expand Forum to Full Width

Featured