VC++编的DLL回参问题 VC++编的DLL中有这么个函数,_stdcall FC_AVICreate(void **handle);其中void **handle是回参。问下delphi要用什么类型调用回来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我给你个简单的例子!//dll中的初始化函数function(hWndParent: HWND; Gid: Int64; pszUserPath: LPCWSTR): HWND;调用程序中://将dll中的函数实例化,定义在单元文件的typei~mplementation 之间TGetFrm = function(hWndParent: HWND; Gid: Int64; pszUserPath: LPCWSTR): HWND; stdcall;//调用的过程procedure mythreadfunc;var Dllhandle: THandle; func: TGetFrm; formhandle: HWND; UserPath: LPCWSTR; Inttt: Int64; funccc: TGetActive; RootNode: IXMLNode; i: Integer; filename: string; tabsheet: TbsSkinTabSheet; pngpath, dllname: string;begin Dllhandle := LoadLibrary('Suspendfrm.dll'); //添加读取的dll文件名 @func := GetProcAddress(Dllhandle, 'Init'); func;//此处就可以进行操作了end;这个例子就是调用dll的例子,如果你还没有搞懂,我可以帮你,邮箱地址:[email protected] _stdcall FC_AVICreate(void **handle); procedure FC_AVICreate(var buff:PChar); void*对应着Pointer,void**自然就是PPointer或者var/out X: Pointer了 问题好像没说清楚,问题中的handle是一个返回指针 Filter过滤access的中文字符串问题 100分奉送,谁有很久以前大富翁论坛huizhang写的TLine???? delphi程序运行时提示缺少qtintf70.dll~是怎么会事啊?? 用FreePascal能在UNIX下进行比较底层的编程吗?? Undeclared identifier,建议向我这样的初学者去看看~~ delphi 中文件的读取相关问题 求教!如何写一个函数! 一个关于内存分配的一个小问题 如何删除控制台程序中输出的字符??? dbgrideh怎么按条件设置某一个单元格的颜色 ADO同名参数问题 模拟键盘操作问题!
function(hWndParent: HWND; Gid: Int64; pszUserPath: LPCWSTR): HWND;
调用程序中://将dll中的函数实例化,定义在单元文件的typei~mplementation 之间
TGetFrm = function(hWndParent: HWND; Gid: Int64; pszUserPath: LPCWSTR): HWND; stdcall;
//调用的过程
procedure mythreadfunc;
var
Dllhandle: THandle;
func: TGetFrm;
formhandle: HWND;
UserPath: LPCWSTR;
Inttt: Int64;
funccc: TGetActive;
RootNode: IXMLNode;
i: Integer;
filename: string;
tabsheet: TbsSkinTabSheet;
pngpath, dllname: string;
begin
Dllhandle := LoadLibrary('Suspendfrm.dll'); //添加读取的dll文件名
@func := GetProcAddress(Dllhandle, 'Init');
func;//此处就可以进行操作了
end;
这个例子就是调用dll的例子,如果你还没有搞懂,我可以帮你,
邮箱地址:[email protected]
procedure FC_AVICreate(var buff:PChar);