Solved

Handling long file names from 16-bit apps

Posted on 1998-07-29
1
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

717 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