Any solutions? Workarounds.
Thanks.
PS : Works fine when you have an MFC exe calling into the MFC extension dll.
extern "C" __declspec( dllexport ) ULONG MembersDll_MembershipList() {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CMEMBERSHIP_LIST CMembershipList;
CMembershipList.DoModal();
return false;
}
Can anyone confirm this.
Thanks.
"David Wong" <da...@jetzsystems.com> wrote in message
news:#hAZpewwBHA.360@tkmsftngp07...
extern long CreateInDll()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CMsgDlg* pMsgDlg = new CMsgDlg;
pMsgDlg->DoModal();
return 1;
}
I don't know what's wrong with you. Do you really have the
resources ?
extern "C" __declspec(dllexport) void InitMyEXTDLL()
{
// create a new CDynLinkLibrary for this app
new CDynLinkLibrary(CMyDLL);
// add other initialization here
}
You can't do it in the InitInstance of the EXE.
"David Wong" <da...@jetzsystems.com> wrote in message
news:#2NSJmxwBHA.2516@tkmsftngp04...