Category Archives: Tips and Tricks

Tips and tricks how to avoid common mistakes or how to generally improve your code.

ANSIToOEM

Today I found some old source code. Someone wanted to write a file in the old OEM codepage. Therefore he wrote a small function that encapsulates the Windows API CharToOem function. class function TStrUtil.ANSIToOEM(const ANSI: string): string; var sBuffer: AnsiString; … Continue reading

Posted in Tips and Tricks | Tagged | Comments Off on ANSIToOEM