dll接口调用问题

piqimiss2 2010-09-03 10:08:24
我下了个 亦思验证码 delphi调用的时候 调用 GetCodeText.dll 即可
提供的接口 是

组件包文件列表:
GetCodeText.dll --编程接口库
Reco.svr --识别引擎
RecoLib.tc --样本库

---------------------
编程接口:
LPTSTR GetCodeText(); //识别验证码,返回识别结果

---------------------
求 在delphi 如何调用 这个 GetCodeText();

感谢 有具体代码最好了 再次感谢
...全文
46 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
YLCN2010 2010-09-03
  • 打赏
  • 举报
回复
动态调用DLL

var
dll:Cardinal;
P: function():PChar;
PC: PChar;
begin
dll:=LoadLibrary(PChar('GetCodeText.dll'));
if dll<>0 then
begin
@P:=GetProcAddress(dll, 'GetCodeText');
if @P<>nil then
PC := P;
FreeLibrary(dll);
end;
end;
白耗子 2010-09-03
  • 打赏
  • 举报
回复


//静态调用
function GetCodeText():pChar;stdcall;external 'GetCodeText.dll';

bdmh 2010-09-03
  • 打赏
  • 举报
回复
function GetCodeText():PChar

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧