读书人

关于AddVectoredExceptionHandler,该怎

发布时间: 2012-04-17 15:06:33 作者: rapoo

关于AddVectoredExceptionHandler
请问AddVectoredExceptionHandler在delphi中要怎么声明?
网上都是vc的

[解决办法]
你问对地方了

Delphi(Pascal) code
function TCGL_VectoredException.VEHInstall: boolean;type  TAddVectored = function(FirstHandler: integer; VectoredHandler: Pointer): HWND; stdcall;var  _pAddVectored: TAddVectored;begin  Result := False;  if FHandler <> 0 then Exit;  _pAddVectored := GetProcAddress(LoadLibrary('Kernel32.dll'), 'AddVectoredExceptionHandler');  if not Assigned(_pAddVectored) then Exit;  FHandler := _pAddVectored(1, @Self.FOnCallback_Instance); //安装VEH  Result := True;end; 

读书人网 >.NET

热点推荐