Results 1 to 2 of 2

Thread: Calling MFC DLL from VB.NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    8

    Calling MFC DLL from VB.NET

    Hi,

    I'm calling an MFC DLL, which show a dialog box, from VB.NET. The application crashed when the DLL try to create the dialog box. If the creation of the dialog is skipped there is no problem using the DLL. Is it possible to call an MFC C++ DLL from VB.NET ?

    Code in the DLL:

    CZModemDlg* aDlg;
    aDlg = new CZModemDlg();
    aDlg->Create(IDD_ZMODEM_DGL); <--------Crashed here !
    aDlg->ShowWindow(1);


    Brgds

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    8

    Re: Calling MFC DLL from VB.NET

    Problems solved ! I have to create a regular DLL statically linked to MFC instead of dynamically. In this case it is not required that MFC is available in the environment.

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