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.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist