문제

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