I have Delphi 2010.

XXX-component uses File_Path:AnsiString. A path can be written in XXX-language. If I set to use XXX-language for non-unicode programs in Windows settings then XXX-component recognize the path but if I set default Windows settings (English Windows-English for non-unicode programs) XXX-component can not recognize the path.

How to fix it?

Thank you!!!

有帮助吗?

解决方案

To solve this problem you need to move away from ANSI strings and start using Unicode strings and the corresponding Unicode versions of the Windows API. At the moment you are reliant on the computer locale and that's an enormous world of pain.

Moving from AnsiString to string takes a little effort but the benefits make the effort well worthwhile.

Embrace Unicode and forget all about the bad old days!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top