Solved

Handling long file names from 16-bit apps

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

786 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