先引用一些源代码
GetMem(NewClient, SizeOf(TClient));
newClient.QQ := NewCommBlock.SendName;
NewClient.Thread := AThread;//binding the thread by the qq number
AThread.Data := TObject(NewClient);
这是从一个服务端的源代码里复制的。
谁能说一下,tobject()怎样处理newclient,目的是什么?
见笑了,没办法,菜鸟只能描述成这样。
GetMem(NewClient, SizeOf(TClient));
newClient.QQ := NewCommBlock.SendName;
NewClient.Thread := AThread;//binding the thread by the qq number
AThread.Data := TObject(NewClient);
这是从一个服务端的源代码里复制的。
谁能说一下,tobject()怎样处理newclient,目的是什么?
见笑了,没办法,菜鸟只能描述成这样。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货