Use pointer parameters in Delphi

zhaozj2021-02-16  43

It is very convenient to use function (int ^ par) in the C language. It has not found Delphi usage. Tonight. Suddenly remember to use Delphi universal pointer Pointer (no type pointer) should be replaced. Test it through. Procedure xx (a: pchar); var TM: ^ tadodataset; begin TM: = Pointer (a); ... END;

Procedure BB; VAR TM: Tadodataset; BeginTM ... xx (@TM);

转载请注明原文地址:https://www.9cbs.com/read-27525.html

New Post(0)