반응형 ocx 등록2 [개발/delphi] how to register an OCX [delphi] How to register an OCX http://www.delphifaq.com/faq/delphi_windows_API/f515_0.htm program RegisterMyOCX; uses OLECtl, Windows, Dialogs; var OCXHand: THandle; RegFunc: TDllRegisterServer; //add to the uses clause begin OCXHand:= LoadLibrary('c:\windows\system\test.ocx'); RegFunc:= GetProcAddress(OCXHand, 'DllRegisterServer'); //case sensitive if RegFunc 0 then RegFunc else ShowMessage('E.. 2011. 12. 12. [delphi] OCX 등록 및 해제 [delphi] OCX 등록 및 해제 // (COM Server) OCX 등록 및 해제 // usage: // RegOCX('C:\Test.ocx'); unit ocxUtils; interface uses Windows, SysUtils, ComObj; procedure RegOCX(const DLLName: string); procedure UnRegOCX(const DLLName: string); implementation procedure RegOCX(const DLLName: string); begin if FileExists(DLLName) then RegisterComServer(DLLName); end; procedure UnRegOCX(const DLLName: string); type T.. 2011. 11. 28. 이전 1 다음 반응형