visitor1203
Technical User
Hi there,
I am wondering if there is a way of sucessfully calling an MFC based Dialog from inside a Win32 API program. I have been able to create the dialog (and it's MFC code) and include the code to open the Dialog on a button click event(using a .DoModal() call). This all compiles fine.
However when I run the program and click the button I get a debug assertion failure in afxwin1.inl at line 22.
If any one has tried this before I would be interested to know if what I am trying to do is possible, and how to get around the problem I am having. I am using Visual C++ 6.0 on Windows 98
Thanks for any help or opinions
I am wondering if there is a way of sucessfully calling an MFC based Dialog from inside a Win32 API program. I have been able to create the dialog (and it's MFC code) and include the code to open the Dialog on a button click event(using a .DoModal() call). This all compiles fine.
However when I run the program and click the button I get a debug assertion failure in afxwin1.inl at line 22.
If any one has tried this before I would be interested to know if what I am trying to do is possible, and how to get around the problem I am having. I am using Visual C++ 6.0 on Windows 98
Thanks for any help or opinions