///////////求教菜鸟问题:关于DLL的用法。有代码/////////////
//============不知在其它工程中如何调用=============
//=================================================
//======新建工程名为:Project1=====================
library Project1;
uses ... ...;
{$R *.res}
exports
Create index 1,
Destory index 7;
begin
end.
//=================================================
//======函数单元这在这里,就2个而已================
unit TTSDLL;
interface
uses VtxtAuto_TLB;
procedure Create;export; {待导出的过程和函数}
procedure Destory;export;
var
TTS: IVTxtauto;
implementation
procedure Create;
begin
TTS:=CoVTxtAuto_.Create; {创建对象}
TTS.Register('Project1','Project1'); {注册 }
end;
procedure Destory;
begin
TTS:=nil;{释放对象}
end;
end.
//================完===编译通过====================
//============不知如何在其它工程中调用=============