请教关于回调函数的问题? type TCallBackFunction = procedure(YourParamList);stdcall; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 呵呵,你定义为一个函数指针就可以了,如TFarProctype TCallBackFunction = TFarProc;或 TCallBackFunction = function (aParam: Integer): Integer;Function EnumMyDevices(EnumProc : TCallBackFunction; param : Integer): integer; StdCall;External 'API.DLL';EnumProc可定义如:function EnumProc(aParam: Integer): Integer; 呵呵,对了,忘了Stdcall了,这可是不能少的。TCallBackFunction = function (aParam: Integer): Integer; stdcall;和function EnumProc(aParam: Integer): Integer;stdall; 谢谢以上各位!我想在Form一出现时就要给上面的ComboBox赋值,是不是在FormCreate里调用?还有,当我在FormCreate里调用时:EnumMyDevices(EnumProc, 0);我的EnumProc应该放在哪儿定义呢,那我应该放在哪儿定义呢,放在哪里才可以在这里调用呢?具体如何定义?再次感谢各位! 呵呵,1。可以在FormCreate中给ComboBox赋值,也可以在OnShow中2。EnumProc可以在直接OnCreate事件的上面定义,如下:function EnumProc(aParam: Integer): Integer;stdall;begin ..... Result := 0;end;procedure TForm1.OnCreate(Sender: TObject);begin ...... EnumMyDevices(EnumProc, 0);end; 请问ADOTable1为什么不能保存? delphi 进程过滤 求助:如何利用远程线程插入技术将木马插入qq进程?谢谢先~ 如何让用户自己设计窗口,并在窗口中添加控件? 高级程员考试的模拟题,帮忙呀,UP有分,今、明天结贴!!!!!! 今天我过生日,散分!!! 与数据库连接问题??急用,多谢!!! 怎么办呀?我把cb++5里的quickreport升到3.6版本后,问题出现了。。。。。 如何在dbgrid中使指针指向的记录高亮显示?分数不会少于30!! 祝 nononono兄新年快乐,万事如意!! 如何让文字显示出来? 200分,高兴散分;再者,大家给个地址
type
TCallBackFunction = TFarProc;
或
TCallBackFunction = function (aParam: Integer): Integer;Function EnumMyDevices(EnumProc : TCallBackFunction; param : Integer): integer; StdCall;External 'API.DLL';EnumProc可定义如:function EnumProc(aParam: Integer): Integer;
TCallBackFunction = function (aParam: Integer): Integer; stdcall;
和
function EnumProc(aParam: Integer): Integer;stdall;
我想在Form一出现时就要给上面的ComboBox赋值,是不是在FormCreate里调用?还有,当我在FormCreate里调用时:
EnumMyDevices(EnumProc, 0);
我的EnumProc应该放在哪儿定义呢,那我应该放在哪儿定义呢,放在哪里才可以在这里调用呢?具体如何定义?
再次感谢各位!
1。可以在FormCreate中给ComboBox赋值,也可以在OnShow中
2。EnumProc可以在直接OnCreate事件的上面定义,如下:function EnumProc(aParam: Integer): Integer;stdall;
begin
.....
Result := 0;
end;procedure TForm1.OnCreate(Sender: TObject);
begin
......
EnumMyDevices(EnumProc, 0);
end;