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

x
?
Solved

How to retain long file names in Win98 with CComboBox::Dir ?

Posted on 2004-10-30
3
Medium Priority
?
208 Views
Last Modified: 2013-11-20
Hi experts,

I have a Ccombo Box which when pulled down will show the filenames with .txt extension. I use the following instructions and they work well on Win2000 and WinXP. However, running on Win98SE, I see the filenames become 8.3 format. I am using Microsoft Visual C++ 6.0.

m_cFileNames.ResetContent();
m_cPortfolios.Dir(DDL_READWRITE, _T("*.txt"));

What am I missing? What should I do to make the filenames show the full name in Win98.

Thanks,
jper
0
Comment
Question by:jper_hm
[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
3 Comments
 
LVL 6

Accepted Solution

by:
Amritpal Singh earned 2000 total points
ID: 12450905
try this code

CString strFile = GetProfilesDir() + _T("c*.icc");
     for (bool bMore = ff.FindFile(strFile), profiles=0; bMore; ++profiles)
         {
         bMore = ff.FindNextFile();
         m_combo.AddString( ff.GetFileName() );
         }

     Hope this helps
0
 

Author Comment

by:jper_hm
ID: 12451074
Thank You. This approach solves the problem.

Regards,
jper
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12451079
n e time
most welcome
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

609 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