CDialog1 is just a new dialog created with resource editor. It's empty, except for buttons "OK" and "Cancel".
When method "Test" is called from another MFC application, the dialog is not shown and GetLastError returns error 87 "The parameter is incorrect". I've also tried using macro AFX_MANAGE_STATE, but same error. (Attached zipped project).
Please help. What parameter?? What do I need to add (or change) to show the dialog?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.