delphi也不是很熟,特請各位高手指點,謝謝大家!1,我看到供應商有提供結構的定義:Type Params=record
Port:array[0..2] of char;
CtrlID:array[0..2] of char;
Param:array[0..1023] of char;
IPPort:array[0..5] of char;
IPAddr:array[0..15] of char;
end;請問結構定義要放在下面哪個位置:unit Main;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton; private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
implementation{$R *.dfm}end.2,他的dll文件我怎樣引用
Port:array[0..2] of char;
CtrlID:array[0..2] of char;
Param:array[0..1023] of char;
IPPort:array[0..5] of char;
IPAddr:array[0..15] of char;
end;請問結構定義要放在下面哪個位置:unit Main;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton; private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
implementation{$R *.dfm}end.2,他的dll文件我怎樣引用
解决方案 »
- TIDTCPServer与TIDTCPClient连接,网络中间断线,两端的程序如何实时发现断线了???急
- 创建窗体,为什么屏幕闪动很厉害?
- 如何用QuickReport实现对ListView内容的打印。就69分了,全给你!
- isapi服务器程序如何调试呀?????
- 高分求~!如何建立与windows资源管理器 中的树型目录 的功能,具有插入和删除。
- delphi7还要不要使用
- 哪里有NetMeeting sdk编程的相关文档资料、代码等?
- 想問點小問題
- 关于delphi自定义控件的问题。。。
- 打包本地sql server数据库和像打包access是不是不一样?
- 一个简单的快捷键问题
- 求助各位大侠:怎样在Canvas上画图时消除闪烁
调用dll里面的函数例如
function ... ;stdcall; external '...dll';
type
TForm1 = class(TForm)
Button1: TButton;
function ... ;stdcall; external '...dll';//定義在這出錯 private
{ Private declarations }
public
{ Public declarations }
end;
放在implementation下面
可以定义在{$R *.dfm}后面的
Port:array[0..2] of char;
CtrlID:array[0..2] of char;
Param:array[0..1023] of char;
IPPort:array[0..5] of char;
IPAddr:array[0..15] of char;
end;
這一段放在TYPE後面就可以了,DLL就不好說了,在網上找一下吧,好多的,基本上就兩種方法1是直接引用
2是動態調用
xxx()
xxx()
-----------
传参数给它小伙子,找点书看看撒