我做了一个DLL然后在别的工程中一引用就是加载错误是怎么回事呀????
library Project1;
uses
SysUtils,
Classes,
Unit1 in 'Unit1.pas',
VTxtAuto_TLB in '..\Imports\VTxtAuto_TLB.pas';{$R *.res}
exports
Create1 index 1 ,
Read index 2,
Pause index 3,
Resume index 4,
Stop index 5,
IsSpeaking index 6,
Destory index 7;
begin
end.
//////////////////////////////////////////////////////////
unit Unit1;interface
uses VtxtAuto_TLB;
procedure Create1;export;
procedure Read(text:PChar);export;
procedure Pause;export;
procedure Resume;export;
procedure Stop;export;
function IsSpeaking:Boolean;export;
procedure Destory;export;
var
TTS:IVTxtauto;
implementation
procedure Create1;
begin
TTS:=CoVTxtAuto_.Create;
TTS.Register('Project1','Project');
end;
procedure Read(text:PChar);
begin
TTS.Speak(text,vtxtst_READING);
end;
procedure Pause;
begin
TTS.AudioPause ;
end;
procedure Stop;
begin
TTS.StopSpeaking ;
end;
procedure Resume;
begin
TTS.AudioResume ;
end;
function IsSpeaking:Boolean;
var
Check:Boolean;
begin
if TTS.IsSpeaking then
begin
Check:=TRUE;
end
else
begin
Check:=FALSE;
end;
Result:=Check;
end;
procedure Destory;
begin
TTS:=nil;
end;end.
另外我还引用了别的一个控件太长就不贴了,
谢谢各位大哥了
library Project1;
uses
SysUtils,
Classes,
Unit1 in 'Unit1.pas',
VTxtAuto_TLB in '..\Imports\VTxtAuto_TLB.pas';{$R *.res}
exports
Create1 index 1 ,
Read index 2,
Pause index 3,
Resume index 4,
Stop index 5,
IsSpeaking index 6,
Destory index 7;
begin
end.
//////////////////////////////////////////////////////////
unit Unit1;interface
uses VtxtAuto_TLB;
procedure Create1;export;
procedure Read(text:PChar);export;
procedure Pause;export;
procedure Resume;export;
procedure Stop;export;
function IsSpeaking:Boolean;export;
procedure Destory;export;
var
TTS:IVTxtauto;
implementation
procedure Create1;
begin
TTS:=CoVTxtAuto_.Create;
TTS.Register('Project1','Project');
end;
procedure Read(text:PChar);
begin
TTS.Speak(text,vtxtst_READING);
end;
procedure Pause;
begin
TTS.AudioPause ;
end;
procedure Stop;
begin
TTS.StopSpeaking ;
end;
procedure Resume;
begin
TTS.AudioResume ;
end;
function IsSpeaking:Boolean;
var
Check:Boolean;
begin
if TTS.IsSpeaking then
begin
Check:=TRUE;
end
else
begin
Check:=FALSE;
end;
Result:=Check;
end;
procedure Destory;
begin
TTS:=nil;
end;end.
另外我还引用了别的一个控件太长就不贴了,
谢谢各位大哥了
解决方案 »
- 请教Quickrep 超严重问题...
- 想写个socket服务程序,要求能服务至少1000个用户而基本上没有阻塞。
- 各位大侠,我开发了一个软件,想放在网上,让大家下载。
- soap/web应用程序debug下正常,编译成isapi放到iis下就出问题?
- 急
- 我开发的《赵玲Delphi函数库》V1.5来看看吧,编程能用得上
- 很急的,关于嵌入IE工具栏的问题!!
- 菜鸟问题:关于UdpSockets的SendTo方法!
- 各位高手,请问Delphi7中为什么的Corba不在属于DataSnap?
- 在一个三层结构中,如何在应用程序服务器端得知目前连接上的客户端的数目,及其IP地址(SocketConnection连接)?
- 哈哈,已到了猴年马月!!放分...,新老朋友一齐来吧,你祝好运!
- 如何实现DBGRID显示记录自动更新?
procedure Read(text:PChar);export;
procedure Pause;export;
procedure Resume;export;
procedure Stop;export;
function IsSpeaking:Boolean;export;
procedure Destory;export;这几句里的export改为stdcall;