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?
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??
The parameter it was about is dialog resource. As long as you failed to specify proper resource handle, the resource was searched in the .exe module resources (default resources). And obviously the search failed, and provided resource id was reported as invalid parameter.
Funny thing, it might be a situation when the dialog resource with the same resource id could be there. In such case you would have some absolutely different dialog window attached to DLL class.
* 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.