Board index » cppbuilder » DirectoryExists, CreateDir with Unicode Files Path

DirectoryExists, CreateDir with Unicode Files Path


2005-07-12 06:17:03 AM
cppbuilder113
Hi,
Just a short question about unicode strings, I'm trying to
check for directories and create directories such as
\\?\C:\Documents and Settings\Account\アンネ=
but the usual functions DirectoryExists, CreateDir and so on
don't work with WideString.
Anyone know a good way to get around the problem of creating these
functions?
Thanks,
Dave
 
 

Re:DirectoryExists, CreateDir with Unicode Files Path

"Dave Deso" < XXXX@XXXXX.COM >wrote in message
Quote
the usual functions DirectoryExists, CreateDir and so on
don't work with WideString.

Anyone know a good way to get around the problem of creating these
functions?
Call the appropriate Win32 API functions directly, ie:
DirectoryExists ->GetFileAttributesW()
CreateDir ->CreateDirectoryW()
etc.
Many of the API functions have Unicode-enabled versions available.
Gambit
 

Re:DirectoryExists, CreateDir with Unicode Files Path

Will do,
Thanks Remy !
 

{smallsort}