从dll文件中调用函数,dll中的函数定义为:UINT IO_Init(HWND hWnd)
在delphi中的声明函数用的是:
function IO_Init(const wid:hWnd):UINT;stdcall;external '.\IOCard.dll';
程序中调用的使用的语句是:
IO_Init(Form1.handle);
在程序执行的时候,报错:Project IOControl.exe raised exception class EAccessViolation with message'Access violation at address 011757A4.Write of address 194F0409'.Process stopped.Use Step or Run to continue.
我想是不是我在调用的时候的语句写的不对?dll中的那个不太可能出错,各位给建议建议??