I have a Listbox and do the commando: m_myListBox.Dir(); This return all files in the current directory to the Listbox. This works perfecly on Windows 2000 and I can see the whole filename. The problem is that when I run the program on Windows98 the filename looks like this: (Eg Directory) [docume~1] and not [documents]. I think this is for the filenames as well, I didn't see any files longer than 8 characters.
Is it something I can fix or will it not work for windows 98.
You can fill the list yourself (..but why..) using FindFirstFile() and
FindNextFile(), then adding the returned names to your listbox using
m_ctrlListBox.AddString(). But you shouldnt have to.
How can I get the CListbox::dir() function bring long file names into my listbox?
FWIW,
Asher
Is it something I can fix or will it not work for windows 98.
You can fill the list yourself (..but why..) using FindFirstFile() and
FindNextFile(), then adding the returned names to your listbox using
m_ctrlListBox.AddString(). But you shouldnt have to.
How can I get the CListbox::dir() function bring long file names into my listbox?
FWIW,
Asher