devxlogo

Lost Long File Names?

Lost Long File Names?

Never, never, never assume that a given API call or control/OCXworks the same under Win95 and Windows NT. For example, the 32-bitfile common dialog handles long file names, right? Well, it doesin Win95, but under NT 3.51, long file names/directory names showup as short names if that name contains an embedded space. Thesolution? If your program needs to run on both platforms, checkfor the operating system in your code. If it is Win95, use thecommon dialog. If it is NT, call your own form that imitates thecommon dialog (the DirListBox and FileListBox show long filenameswith embedded spaces just fine). Or, just tell your users to waitfor NT 4.0.

devx-admin

Share the Post: