社区
Windows SDK/API
帖子详情
Delphi调用VC的dll问题?
hotboy1000
2004-11-11 02:59:26
VC里是这么调用的
typedef void* JL_HANDLE;
int JL_TCPLogin (
LPCTSTR strHost, int nPort,
LPCTSTR strUserId, LPCTSTR strPassword,
int nType,
JL_HANDLE* pRtnHandle /*OUT*/);
我想问问用delphi 怎么声明?
...全文
114
4
打赏
收藏
Delphi调用VC的dll问题?
VC里是这么调用的 typedef void* JL_HANDLE; int JL_TCPLogin ( LPCTSTR strHost, int nPort, LPCTSTR strUserId, LPCTSTR strPassword, int nType, JL_HANDLE* pRtnHandle /*OUT*/); 我想问问用delphi 怎么声明?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
4 条
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
打赏红包
beyondtkl
2004-11-23
打赏
举报
回复
哦 警告的行数??
你可以 再 Pointer(PChar(.))这样转换
hotboy1000
2004-11-23
打赏
举报
回复
我在动态调用dll的时候会出现这些警告是不是正常的
[Warning] Unit1.pas(74): Unsafe type 'PChar'
[Warning] Unit1.pas(164): Unsafe type 'PChar'
[Warning] Unit1.pas(168): Unsafe code '@ operator'
[Warning] Unit1.pas(169): Unsafe code '@ operator'
Behard
2004-11-11
打赏
举报
回复
查一下 FAQ 先嘛
beyondtkl
2004-11-11
打赏
举报
回复
typedef void* JL_HANDLE; JL_HANDLE -> Pointer;
int JL_TCPLogin (
LPCTSTR strHost, int nPort,
LPCTSTR strUserId, LPCTSTR strPassword,
int nType,
JL_HANDLE* pRtnHandle /*OUT*/);
->
function JL_TCPLogin (strHost:PChar; nPort:Integer;strUserId:PChar;strPassword:PChar;
nType:Integer; pRtnHandle:PPointer):Integer;stdcall; external '**.dll';name 'JL_TCPLogin'
如不行就用 cdecl.
相关推荐
Delphi
调用
VC
DLL
演示
Delphi
调用
VC
DLL
参数传递
VC
调用
Delphi
的
DLL
时遇到的
问题
及解决
在开发的过程,有时会遇到用
VC
调用
Delphi
的
DLL
的时候: 1、
调用
过程
Delphi
的
DLL
不是标准的
DLL
,所以,
VC
调用
时会有限制。 大致包括过程: 1) 声明指向函数的指针,并定义函数指针; typedef BOOL (__stdcall * lpPlateTemplateFun)(
关于
delphi
调用
vc
编写的
dll
中参数类型有关
问题
关于
delphi
调用
vc
编写的
dll
中参数类型
问题
delphi
调用
vc
编写的
dll
,一般是没
问题
的把, 如果
dll
中的函数类似 DWORD WINAPI NVNET_LogonServer(LPCSTR lpszServerIP,WORD wServerPort,LPCSTR lpszUserName, LPCSTR lpszPsw,TRANS_SERVER
请问
Delphi
调用
VC
写的
dll
,有传入和传出参数都是unsigned char*运行中有有关
问题
请教
Delphi
调用
VC
写的
dll
,有传入和传出参数都是unsigned char*,运行中有
问题
VC
写的
dll
的定义 extern "C "_declspec(
dll
export) unsigned char* GenAuthenNO(unsigned char *MachineNO, unsigned char *AuthenNO)
Delphi
VC
与
Delphi
之间动态链接库互相
调用
====================================================== 注:本文源代码点此下载 ======================================================
vc
与
delphi
之间动态链接库互相
调用
delphi
调用
vc
的
dll
vc
中
dll
声名格式: extern “c” void __dec
发帖
Windows SDK/API
Windows SDK/API
Delphi Windows SDK/API
复制链接
扫一扫
1177
社区成员
2.2w+
社区内容
Delphi Windows SDK/API
社区管理员
加入社区
获取链接或二维码
帖子事件
创建了帖子
2004-11-11 02:59
社区公告
暂无公告