PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Gajanan Raje on August 08, 2006, 05:20:56 PM

Title: Activex Control
Post by: Gajanan Raje on August 08, 2006, 05:20:56 PM
I created a program that uses Activex Control.  Program runs fine and I am able to use methods, properties and events.  However, when I ran the program on my second computer it did not work.  Both computers have the same version of the control, same OS - Win98SE

I then moved the project to the other computer and compiled and ran the program.  It failed.  Then I removed the Ocx control from the form and then added it again and then compiled the program and it did work.

I would like to know if this is how it is supposed to be.  That is, the program with activex can run only on the computer on which it is created.
Or is ther something I am not doing properly.

The acivex control I am using is for Interacive Brokers API.  It is a free control.

Thanks for any insight.

Gajanan Raje
Title: Activex Control
Post by: TechSupport on August 08, 2006, 06:45:54 PM
That's a good question. I am not sure that I know the answer. It is possible that the OCX has not been correctly registered on your other computers? Most ActiveX controls need to be registered with the system. You can do this via the Start/Run menu command. Type in RegSvr32 <ocxname>. The <ocxname> should be the name of your control (you probably need to specify the full path name to the ocx file).