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
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.