Einzelnen Beitrag anzeigen

Benutzerbild von KodeZwerg
KodeZwerg

Registriert seit: 1. Feb 2018
3.685 Beiträge
 
Delphi 11 Alexandria
 
#21

AW: TFileStream crasht bei Dateiname=285 Zeichen mit Unicode

  Alt 28. Mai 2018, 11:46
@himitsu: ShortName ....
Delphi-Quellcode:
function GetShortPathString(sLongPathName : string) : string;
begin
  Result:='';
  SetLength(Result,MAX_PATH+1);
  GetShortPathName(PChar(sLongPathName),PChar(Result),MAX_PATH);
  SetLength(Result,StrLen(PChar(Result)));
end;
Gruß vom KodeZwerg
  Mit Zitat antworten Zitat