什么意思 type T_dev_init = function(port: smallint; baud: longint): longint;
type T_dev_init = function(port: smallint; baud: longint): longint; stdcall;
这是什么用法,是什么意思?
[解决办法]
定义一个函数当作类型,允许这个函数被定义作为参数用于子程序。可用于回调
[解决办法]
The "T_dev_init" is a "Procedural type".
查看帮助:“Procedural types”。
[解决办法]
就是定义一个类型,类似这样type XXOO=integer;
通常我们给方法传递参数是简单的一个Integer/string或其它类型
你说的这种就是把一个函数定义成一个类型, 这样就可以把一个函数当作参数来传递了,多用于回调函数procedure x(A:T_dev_init);
[解决办法]