[fpc-pascal] Unicodestrings and Assign(File)
skalogryz.lists at gmail.com
Sun May 13 05:59:09 CEST 2012
I'm assuming that everyone is aware of the solution for this.
Every unicode file name still has ANSI-dos name (aka ShortName).
You could write a function that would return a short name based on
unicode name of a file. And pass the short name to Assign File
On Wed, May 9, 2012 at 11:46 AM, Jürgen Hestermann
<juergen.hestermann at gmx.de> wrote:
> Is it (already) possible to use Unicodestrings for file paths?
> I was able to access long paths (with many hundreds of characters)
> in the windows API functions FindFirstFileW (with Win32_Find_DataW
> data type) but I failed to open such files with Assign(File)/reset.
> Are they converted to (one byte) Ansistring internally?
> Am I forced to use CreateFile or similar function to open such files?
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal