INFO: OFN_EXPLORER from 32-bit Thunk Brings Up Old CommDlg

ID: Q140726


The information in this article applies to:
  • Microsoft Windows 98
  • Microsoft Windows 95


SUMMARY

You can have a 16-bit application running under Windows 95 take advantage of the new Explorer-style FileOpen common dialog by thunking up to a 32-bit DLL, specifying the OFN_EXPLORER style from that DLL, and linking it with the new COMDLG32.DLL. This, however, causes the old-style dialog to come up, instead of the new Explorer-style dialog.


MORE INFORMATION

Although the common dialog function is called from the 32-bit DLL, COMDLG32.DLL detects that the current process is still a 16-bit application and quickly reverts back to the old-style File Open common dialog. This is because the new Explorer-style dialog uses multiple threads, which 16-bit applications do not support.

The only way for a 16-bit application to take advantage of the new Explorer- style functionality is to port to Win32 and make the call to GetOpenFileName() directly.

Additional query words:

Keywords : kbCmnDlg kbCmnDlgFileO kbCmnDlgSave kbGrpUser kbWinOS95 kbWinOS98
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 7, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.