jerilynn hat folgendes geschrieben: |
Hallo,
ich wollte fragen ob jemand eine Unicode fähige FileExists Funktion kennt die auch mit WideStrings (also Unicode Strings) zurecht kommt? Habe bestimmt schon das halbe Internet abgegrast leider ohne Erfolg.
Greez
Lynn |
Hallo,
die "offizielle" Methode ist wohl FindFirstFileW. Kommentar bei MS:
In the ANSI version of this function, the name is limited to MAX_PATH CHARs. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File.
Wenn das Ergebnis ein ungültiges Handle ist, existiert die Datei nicht oder ist nicht zugreifbar, was für die Software auf das Gleiche herauskommt.
Gruss Reinhard