Solved

Handling long file names from 16-bit apps

Posted on 1998-07-29
1
155 Views
Last Modified: 2010-04-15
Is it possible to create files with long file names (non 8+3 file names) from 16-bit applications written in C? Is it possible to open or save such files? Perhaps there is a trick to do this.
0
Comment
Question by:mskohut
1 Comment
 
LVL 11

Accepted Solution

by:
alexo earned 200 total points
ID: 1251871
>> Perhaps there is a trick to do this.
Yep.  and a nasty one too.

Under Win9x you'll have to directly invoke the MS-DOS functions that deal with LFNs.  Under NT, tough luck.

Some of the new MS-DOS 7.x functions (Interrupt 0x21 Functions 0x71xx) support LFNs.  You better be comfortable with assembly language and have a good reference handy.

To get more info, search the MSVC online help for ("int 21h" & ("long file name" | "long filename")).  MSVC 4.2 found 15 topics (one irrelevant).

Familiarize yourself with assembly programming:
    http://cuda.ucr.edu/Page_asm/ArtOfAsm.html
    http://www.qzx.com/asm/
    http://www.utu.fi:80/~sisasa/oasis/oasis-assembly.html

Also get Ralf Brown's interrupt list:
    http://ctyme.com/rbrown.htm
    http://www.cs.cmu.edu/afs/cs.cmu.edu/user/ralf/pub/WWW/files.html

Finally, this question really belongs in the "Windows Programming" area, not the "C programming" one.  You don't ask about the C language, do you?
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now