使用 Delphi 中的 TAPI 拨打电话

发布于 2024-09-27 07:07:46 字数 73 浏览 0 评论 0原文

我需要使用 Delphi 2006 中的 TAPI 发起呼叫。我希望它尽可能简单。对于简单的组件有什么建议吗?是在《绝地武士》中吗?

I need to initiate a call using TAPI from Delphi 2006. I'd like it to be as simple as possible. Any suggestions for a simple component? Is it in JEDI?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

哀由 2024-10-04 07:07:46

你可以使用TurboPower Async Professional,前段时间我使用了这个库并且工作得很好,你可以找到有关 tapi 和 AsyncPro 组件的更多信息,请参阅此链接

you can use the TurboPower Async Professional, some time ago I used this library and worked perfect, you can find more info about tapi and the AsyncPro component in this link.

温柔少女心 2024-10-04 07:07:46

以下是组件列表 一些免费软件 一些共享软件

http://www.torry.net/pages .php?id=199

谢谢

Here is a list of components some freeware some shareware

http://www.torry.net/pages.php?id=199

Thanks

痴意少年 2024-10-04 07:07:46

要使用 Tapi 和 delphi,您只需要两件事。

一个。导入 dll 并创建 tlb 文件。
在delphi菜单中,转到componenets,然后选择导入组件,然后选择导入类型库,输入“tapi3”并选择tapi3.dll。

b.使用创建的 dll 进行调用,您只需使用

procedure TForm1.Button1Click(Sender: TObject);
var
  Request:ITRequest;
  dispatch:ITDispatchMapper;
begin
  Request := CoRequestMakeCall.create;
  Request.MakeCall('555-5555','Tag','client name','Comment');
end;

并将“555-5555”替换为用户输入的文件编号(作为字符串)。

To use Tapi and delphi all you need is 2 things.

a. import the dll and create the tlb file.
in the delphi menu, go to componenets, then choose import components, then choose import type library, type "tapi3" and pick the tapi3.dll.

b. with the dll created to make a call you simple need to use

procedure TForm1.Button1Click(Sender: TObject);
var
  Request:ITRequest;
  dispatch:ITDispatchMapper;
begin
  Request := CoRequestMakeCall.create;
  Request.MakeCall('555-5555','Tag','client name','Comment');
end;

and replace the '555-5555' with the user input file number, as string.

我很OK 2024-10-04 07:07:46

implementation 之前添加此行,如下所示

function tapiRequestMakeCallW(DestAddress: PWideChar; AppName: PWideChar;
  CalledParty: PWideChar; Comment: PWideChar): LongInt; stdcall;
external 'TAPI32.DLL';

在调用 tapiRequestMakeCallw 之后的

TapiSonuc:=tapiRequestMakeCallw(Phone,'', comment, Comment);

Add this line before the implementation

function tapiRequestMakeCallW(DestAddress: PWideChar; AppName: PWideChar;
  CalledParty: PWideChar; Comment: PWideChar): LongInt; stdcall;
external 'TAPI32.DLL';

after that call tapiRequestMakeCallw like that

TapiSonuc:=tapiRequestMakeCallw(Phone,'', comment, Comment);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文