在c语言中用function (int ^par)很方便,查过好多资料没找到Delphi的用法,今晚没事突然想起用Delphi万能指针Pointer(无类型指针)应该可以代替。测试一下通过。procedure xx(a:pchar);var tm:^TAdodataset;begin tm:=Pointer(a);...end;
procedure bb;var tm:TAdodataset;begin tm... xx(@tm);end;
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18