FIX: Dialog in InitInstance Doesn't Process WM_DDE_INITIATE (173261)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q173261 SYMPTOMS
When you try to start an application that contains a modal dialog function,
such as CDialog::DoModal, AfxMessageBox, or MessageBox, that is called from
the CWinApp derived class' InitInstance function by double-clicking on the
application from the Windows 95 Explorer, selecting the saved document from
the Start Menu or double-clicking on it from File Manager, one of the
following may happen: CAUSE
When you launch an application in File Manager or Windows Explorer, a
WM_DDE_INITIATE is supposed to be handled by the CWinApp and CFrameWnd
OnDDEIntitiate handlers. A call to CDialog::DoModal, AfxMessageBox, or
MessageBox interferes with the ability for the MFC framework to handle
these messages correctly.
RESOLUTION
It has been determined that this behavior is by design and that it is not
recommended to place any of these calls within the CWinApp::InitInstance.
Any password dialogs or dialog based components which need to be displayed
in the InitInstance should be of the modeless type. This does not apply to
a dialog based application or an SDI application.
STATUS
This problem was corrected in Visual C++ version 6.0.
REFERENCES
For related information, please see the following article in the Microsoft
Knowledge Base:
172336 PRB: Assertion Launching Program with Tip of Day & Splash Screen
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbbug kbfix kbNoUpdate kbVC600fix KB173261 |
---|
|