- Messages
- 45
- Country

Hello,
I have a DLL which loads along with FSX, and the user can get info from my DLL through the add-on menu which launch a simple windows dialog box containing the information.
Now I want to make something more sophisticated with propertysheet and propertypages, so I have followed the standard procedure (creating property pages, loading them in the sheet with AddPage(&MyPageN) ). When I call my property sheet from within my DLL with :
CMyDialog dlg; // This is my property sheet class
dlg.DoModal()
I get an assertion failure in afxwin1.inl :
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
Is there something special when using that kind of dialog from within a simconnect DLL ??
In particular, is there somepoint I missed with the parent window ?
Oliver
I have a DLL which loads along with FSX, and the user can get info from my DLL through the add-on menu which launch a simple windows dialog box containing the information.
Now I want to make something more sophisticated with propertysheet and propertypages, so I have followed the standard procedure (creating property pages, loading them in the sheet with AddPage(&MyPageN) ). When I call my property sheet from within my DLL with :
CMyDialog dlg; // This is my property sheet class
dlg.DoModal()
I get an assertion failure in afxwin1.inl :
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
Is there something special when using that kind of dialog from within a simconnect DLL ??
In particular, is there somepoint I missed with the parent window ?
Oliver
