C
chenby
Unregistered / Unconfirmed
GUEST, unregistred user!
本人在上几期中找到了有关注册ocx的解答,但是试了发现:
Uses Olectl,没有找到此单位。
而本人又不知道怎么找到TDllRegisterServer这个类的单元。
想请教各位高手。赶快来助我!
可以用代码在程序中实现ocx的注册. 举例如下:
(假设需要注册的文件为test.ocx)
uses OLEctl,....
var
OCXHand: THandle;
RegFunc: TDllRegisterServer;
begin
OCXHand:= LoadLibrary('c:/windows/system/test.ocx');
RegFunc:= GetProcAddress(OCXHand, 'DllRegisterServer')
if RegFunc <> 0 then ShowMessage('Error!');
FreeLibrary(OCXHand);
end;
Uses Olectl,没有找到此单位。
而本人又不知道怎么找到TDllRegisterServer这个类的单元。
想请教各位高手。赶快来助我!
可以用代码在程序中实现ocx的注册. 举例如下:
(假设需要注册的文件为test.ocx)
uses OLEctl,....
var
OCXHand: THandle;
RegFunc: TDllRegisterServer;
begin
OCXHand:= LoadLibrary('c:/windows/system/test.ocx');
RegFunc:= GetProcAddress(OCXHand, 'DllRegisterServer')
if RegFunc <> 0 then ShowMessage('Error!');
FreeLibrary(OCXHand);
end;