Solved

long filenames

Posted on 1998-06-29
2
159 Views
Last Modified: 2013-11-20
I have an application that needs the ability to save files in both 95 and NT.  I save these files using ofstream. A typical file name could be "nt.scn98". Note the Length.  Now to open a file, I use a ComboBox::Dir call to the directory where the files reside.   Using explorer, the files look the same on both machines.  Yet, in my combobox, they come up, on nt as "nt.scn98". On 95, they come up as "nt~....".  After I get the string, I attempt to open the file...this works on NT but not on 95. Any ideas?  On 95, it doesn't seem to be able to find the file....

Thanks
0
Comment
Question by:mulshine
2 Comments
 

Author Comment

by:mulshine
ID: 1318505
Note:  I am running this from a dos command prompt on the various platforms...
0
 
LVL 2

Accepted Solution

by:
rayb earned 60 total points
ID: 1318506
Try the WIN32 function:
GetFullPathName
To make the filname conversion, then try opening the returned filename.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli‚Ķ
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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

16 Experts available now in Live!

Get 1:1 Help Now