在vc中的声明为:
extern long __cdecl sr_NotifyEvent(HWND handle, unsigned int message, unsigned int flag);
我将它转变为delphi声明:
function sr_NotifyEvent(handle:HWND; imessage:Cardinal;flag:Cardinal):longint;cdecl;far external 'DNSRL.dll';执行该函数
sr_NotifyEvent(form1.Handle,1034,0);
出现:"Access voilation at address 00000000. read of address 00000000"