Discussion:
Help regarding getting Long File Name
(too old to reply)
Inthi
2007-09-18 13:48:03 UTC
Permalink
Hi All,

I have an (MFC) MDI application which runs on XP with SP2 machine. when I
open my document I am not able to get the full path and file name. The file
name is truncated to 8 characters with ~ sign (Shot path and file name).
Where as in different XP machine I am able to get the full path and file
name.
Could anybody help me know how to get the full path and file name.
In anticipation.

Cheers,
Inthi
Drew
2007-09-18 15:19:21 UTC
Permalink
GetLongPathName()

Drew
Post by Inthi
Hi All,
I have an (MFC) MDI application which runs on XP with SP2 machine. when I
open my document I am not able to get the full path and file name. The file
name is truncated to 8 characters with ~ sign (Shot path and file name).
Where as in different XP machine I am able to get the full path and file
name.
Could anybody help me know how to get the full path and file name.
In anticipation.
Cheers,
Inthi
Inthi
2007-09-19 04:28:01 UTC
Permalink
Hi,
In my application I am using CString - Replace function to change the
extension of the file. Because the original file name that my application is
getting is in the form of short file name and hence replace function is
failing. This is happening on only on one particular PC. Is there anysetting
in Windows XP that causes my application to receive short file name.
Please help ASAP

-inthi
Post by Drew
GetLongPathName()
Drew
Post by Inthi
Hi All,
I have an (MFC) MDI application which runs on XP with SP2 machine. when I
open my document I am not able to get the full path and file name. The file
name is truncated to 8 characters with ~ sign (Shot path and file name).
Where as in different XP machine I am able to get the full path and file
name.
Could anybody help me know how to get the full path and file name.
In anticipation.
Cheers,
Inthi
Loading...