Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

long filenames

Posted on 1998-06-29
2
Medium Priority
?
172 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
[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
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 120 total points
ID: 1318506
Try the WIN32 function:
GetFullPathName
To make the filname conversion, then try opening the returned filename.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

618 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