I have an MFC dll where I comfortably use the AFX_CLASS_EXPORT to export complete classes.
on of them is a CDialog derived class which has some resource template.
The point is, when I call dlg.DoModal() in my app, it returns -1 because it searches the Resource in the app , not the dll. How do I call doModal on the exported instance, and load the resource from the dll ?
class AFX_CLASS_EXPORT CMyDllDlg : public CDialog
dlg CMyDllDlg; // OK
dlg.DoModal() // resource problem!