A
arron1104
Unregistered / Unconfirmed
GUEST, unregistred user!
我现在需要调用一个Dll文件中的一个函数,该Dll文件是用C++写的,在.h文件中有如下说明:BOOL InitialVideo(CWnd *hWnd);
我的delphi中,申明了该函数:
function InitialVideo(var pHandle: Longword):boolean;stdcall;external 'SONY285DLL.dll';
在.pas文件中做如下调用:
HHV = Longword;
HVSTATUS = Boolean;
procedure TForm1.Button1Click(Sender: TObject);
var
status:HVSTATUS;
begin
status := InitialVideo(m_hhv);
end;
但是运行时总是提示:projecct Test_Dll.exe raised exception class EAccessViolation with message "Access violation at address 00455c04 in module'Test_Dll.ext'.write of address 00000001".Process stopped.use step or Run to continue.
问题:是否我调用该Dll文件中的函数有误?该如何调用? 谢谢!
我的delphi中,申明了该函数:
function InitialVideo(var pHandle: Longword):boolean;stdcall;external 'SONY285DLL.dll';
在.pas文件中做如下调用:
HHV = Longword;
HVSTATUS = Boolean;
procedure TForm1.Button1Click(Sender: TObject);
var
status:HVSTATUS;
begin
status := InitialVideo(m_hhv);
end;
但是运行时总是提示:projecct Test_Dll.exe raised exception class EAccessViolation with message "Access violation at address 00455c04 in module'Test_Dll.ext'.write of address 00000001".Process stopped.use step or Run to continue.
问题:是否我调用该Dll文件中的函数有误?该如何调用? 谢谢!