Guest User

Untitled

a guest
Apr 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. procedure DesignPriceList(ADLLCallBack: TDLLCallBack);
  2. var
  3. lib: HInst;
  4. DesignFun: function(ADLLCallBack: TDLLCallBack): Integer;
  5. Result: Integer;
  6. begin
  7. lib := LoadLibrary(pChar('c:\tw\db\LibPrice.dll'));
  8. if(lib = 0) then begin
  9. Application.MessageBox('Ошибка вызова LinPrice.dll!', 'TW', MB_OK + MB_ICONERROR);
  10. exit;
  11. end;
  12. @DesignFun := GetProcAddress(lib, 'DesignPrice');
  13. if(@DesignFun = nil) then begin
  14. Application.MessageBox('Ошибка вызова функции DesignPrice!', 'TW', MB_OK + MB_ICONERROR);
  15. FreeLibrary(lib);
  16. exit;
  17. end;
  18. Result := DesignFun(ADLLCallBack);
  19. FreeLibrary(lib);
  20. end;
Add Comment
Please, Sign In to add comment