CDialog and dll
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I put a CDialog into a dll, exported the dialog class and attempted to call it from the application program. Ok so far. But the DoModal() method always returns -1. I stepped through MS DoModal() code and found out that it cannot find the template. When called from within the dll it works ok. I also tried passing the 'this' pointer in my app to the dialog's constructor, but that didn't help either. Any ideas how to make this work?