Solved

Handling long file names from 16-bit apps

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert image to byte array 8 209
Inorder binary search tree 5 173
C#, VS15, StructLayout 1 135
Detect CR LF to each line 12 170
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…
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 opening and reading files 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.

837 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