Registering ActiveX

I would like to know how to register ActiveX components programaticaly in Delphi 3. I don't want someone tell me about some components that do that kind of job...
fmichaud061597Asked:
Who is Participating?
 
mvz121697Connect With a Mentor Commented:
2 options:
- shell to regsvr32.exe , or
- do it yourself:

var
  hOCX:integer;
  pReg: procedure;
begin
  hOCX := LoadLibrary('CFX32.OCX');
  if (hOCX <> 0) Then
  begin
    pReg := GetProcAddress(hOCX,'DllRegisterServer');
    pReg; { Call the registration function }
    FreeLibrary(hOCX);
  end
end;

0
 
JimBob091197Commented:
Thanks for the information !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.