How to Register an ActiveX Component?

This is a discussion on How to Register an ActiveX Component? within the Windows Programming forums, part of the Platform Specific Boards category; Hi there, I am using a third party ActiveX component in my project. I understand I need to distribute the ...

  1. #1
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812

    How to Register an ActiveX Component?

    Hi there,

    I am using a third party ActiveX component in my project.

    I understand I need to distribute the component OCX file (and it's related DLLs) in application setup.

    How do I do this? Where do I place the OCX file (system32)? Do I need to perform somekind of registration proceedure during the installation of my application?

    Cheers
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Usually, you load the dll (or ocx in your case) and use GetProcAddress to find DllRegisterServer....call that and you should be registered.

    Alternatively, use a script to install the component by calling "RegSvr32 MyComServer.ocx"

  3. #3
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    Thanks Fordy.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. STA component call MTA component
    By George2 in forum Windows Programming
    Replies: 0
    Last Post: 03-30-2008, 07:36 AM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Best ActiveX Component?
    By WaterNut in forum C Programming
    Replies: 2
    Last Post: 01-29-2006, 08:07 PM
  4. Activex component
    By planet_abhi in forum Game Programming
    Replies: 1
    Last Post: 12-16-2003, 03:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21