首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

什么意思 type T_dev_init = function(port: smallint; baud: longint): longint;解决方法

2012-08-13 
什么意思 typeT_dev_init function(port: smallint baud: longint): longinttypeT_dev_init functio

什么意思 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);
[解决办法]

探讨

引用:
就是定义一个类型,类似这样type XXOO=integer;
通常我们给方法传递参数是简单的一个Integer/string或其它类型

你说的这种就是把一个函数定义成一个类型, 这样就可以把一个函数当作参数来传递了,多用于回调函数procedure x(A:T_dev_init);


啥是回调函数呀。

热点排行