General information
Title:
Calling Dialogs contained in DLLs
I'm trying to call a function in a dll that displays a CDialog derived dialog box. I am calling this DLL from another development environment (Visual FoxPro 5). I keep getting an "Assertion Failed" message when I try to call the function. It is in file AFXWIN1.INL, Line 22. Is there a certain something I need to do to get this to work?
function code follows:
char* fTest()
{
char* cTest;
cTest="test";
TestDialog dlg;
dlg.DoModal();
return cTest;
};
Without the dialog stuff the function works fine. And I know the dialog box doesn't have any errors in it. Any ideas would be much appreciated.
TIA,
Garritt
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only