Solved

Handling long file names from 16-bit apps

Posted on 1998-07-29
1
152 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops 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.

760 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