读书人

Undeclared identifier: amp;#x27;TIdTex

发布时间: 2013-02-25 10:23:36 作者: rapoo

Undeclared identifier: 'TIdTextEncoding'应该包含什么
发送tstringlist时
IdTCPClient1.IOHandler.Write(ToBytes(ise.Text,TIdTextEncoding.UTF8));
出现上面的错误,应该包含什么啊。
[解决办法]
TIdTextEncoding定义在IdGlobal.pas中

TIdTextEncoding is also declared in IdGlobal.pas. You cannot be using Delphi XE or XE2 an not have either TIdTextEncoding or IndyUTF8Encoding() available, since they are widely used throughout Indy's source code. If the compiler is complaining that they are both undeclared, that makes me think you simply have not added IdGlobal to the uses clause in your code. Remy Lebeau Jan 27 '12 at 1:50

摘自:http://stackoverflow.com/questions/8984247/making-a-base64-decoded-text-visible-without-changing-windows-language-for-non

读书人网 >.NET

热点推荐