
Displaying message/dialog box before EnableShellOpen call
I have an MDI application. If I display a message box or
dialog box before EnableShellOpen call in InitInstance and
double-click on a file associated with my application, the
application does come up as well as the message box.
However, an error message also comes up complaining that
my file (on which I double-clicked) was not found. That
message is followed by another message that the object
referred to by that file has been removed or is
inaccessible. The file I double-clicked is not opened.
These errors messages DO NOT come up if I display message
box or dialog box AFTER EnableShellOpen call. Does this
mean one cannot display a message box or dialog box before
calling EnableShellOpen?
Do I need to make certain changes in registry so that I
may display message boxes before calling EnableShellOpen?