You might think the below question on CodePage zero is Delphi related, but most of it is not.
It is about CP_ACP (the currently Active CodePage, and has some interesting observations:
- It can vary accross systems
- It can be changed without reinstalling Windows
- Delphi 2009 sometimes did a bad job with it (but Delphi 2010 and up are OK)
CP_ACP is the major reason people have difficulties exchanging the data in text files between applications on different computers.
Oh and you can get the actual value of the active Active CodePage using GetACP, but CP_ACP isn’t always slower..
–jeroen






TComboBoxStyleHook. – David Heffernan Sep 9 at 13:13Business Layergives me aTStringswith theObjectsfilled (it is pre-Delphi-2009, so no generics yet). That’s why I can get out theTextsou easy (: First I need to finish about a week of .NET work though. – Jeroen Wiert Pluimers Sep 10 at 16:03TExtComboBoxand its own VCL styles feature. – Warren P Sep 10 at 20:45Objectinstance references are already in theTStrings, I wrote a small function to return a new temporaryTStringsthat has the string values with the captions I needed and keep theObjectreferences. Since it has the same item ordering, and sameObjectreferences I don’t need any mapping at all. Just need to make sure I free the newTStringsat the right moment. – Jeroen Wiert Pluimers Sep 10 at 21:24