s***@hotmail.com
2006-05-09 16:13:26 UTC
Hello,
I have an excel file, whose file name contains japanese chars. When
this file is passed to GetFileAttributes() and FindFirstFile() APIs, it
fails. It returns 0xffffffff. It is a valid file, which I can otherwise
open in Excel properly.
The vc project is compiled with Multi byte character set. I have been
working with other files with file names having japanese chars, and
they all work fine. Only this file fails.
I noticed that this is due to one particular character. I copied this
character from the filename into notepad and saved it as unicode,
opened the same in vc++ editor with binary editor, it shows in hex as
3C 25 (<%).
I have no clue why these APIs are failing for this file?
I would appreciate your suggestions and comments.
Thanks
I have an excel file, whose file name contains japanese chars. When
this file is passed to GetFileAttributes() and FindFirstFile() APIs, it
fails. It returns 0xffffffff. It is a valid file, which I can otherwise
open in Excel properly.
The vc project is compiled with Multi byte character set. I have been
working with other files with file names having japanese chars, and
they all work fine. Only this file fails.
I noticed that this is due to one particular character. I copied this
character from the filename into notepad and saved it as unicode,
opened the same in vc++ editor with binary editor, it shows in hex as
3C 25 (<%).
I have no clue why these APIs are failing for this file?
I would appreciate your suggestions and comments.
Thanks