Help me please : write MFC-DLL
- I built a MFC-DLL with VC++6.0
I add very simple function : Hello :
void Hello()
{
CFileDialog dlg(0);
dlg.Domodal();
}
and I export this function in .DEF file
- I use this DLL in VB6
An error occur :
...
File : afxwin1.inl
Line : 19
...
I look afxwin1.inl, line 19 :
Line 18 : _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle()
Line 19 : { ASSERT(afxCurrentInstanceHandle != NULL);
Line 20 : return afxCurrentInstanceHandle; }
Why that?
don't my dlg have Parent Handle?
What will i do to show that Dialog in VB?
(I must built MFC DLL, not use ATL)
Please show me
Thank !