Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Dialogs contained in DLLs
Message
 
To
All
General information
Forum:
Visual C++
Category:
Troubleshooting
Title:
Calling Dialogs contained in DLLs
Miscellaneous
Thread ID:
00036262
Message ID:
00036262
Views:
65
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
Map
View

Click here to load this message in the networking platform