![]() |
MKI_FileShortName (File I/O) Changed in Version 2014.2 |
www.CAD6.com |
C++ Syntaxbool MKI_FileShortName( const LPCWSTR f_pszFullName, MKI_FILENAMEW& f_rShortName );
Shortens a file's name, usually to display it in a dialog window of limited size. Usually, the resulting file name will not be longer than 80 characters (unless the file's base name itself is longer than 80 characters).
ParametersFullName [const LPCWSTR] Address of file name to be shortened. ShortName [MKI_FILENAMEW&] Address of text buffer to receive the shortened file name.
Return ValueReturns true if successful, false if not.
CommentIf, e.g., the current file name is: d:\dirname1\dirname2\dirname3\dirname4\filename.ext the resulting short file name might be: d:\...\dirname4\filename.ext
This procedure will work for all types of file systems (FAT, Enhanced FAT, NTFS, HPFS).
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH