问题
I need Crt unit for Delphi 2010 console application (ReadKey, GotoXY, ...). Is there any Crt unit for Delphi 2010?
回答1:
I'd start with any of the CRT units here.
回答2:
I updated the code from Branko's link, and came up with this:
https://onedrive.live.com/embed?cid=F5BB35AE00415BC7&resid=F5BB35AE00415BC7%21232&authkey=AIKZAtMjhUyE-TQ
It's a working Crt32 for unicode delphi. Changes required include char->AnsiChar, pChar->PAnsiChar, and VariousWin32ApiFunction() to VariousWin32ApiFunctionA().
来源:https://stackoverflow.com/questions/4706603/crt-unit-for-delphi-2010