10-29-2009 12:30 AM
Hi
i came across this in the knowledge base of NI.
This is regarding the registering and unregistering of an ActiveX control. To register, we need to provide a path to activex control.
What i want to know is, path of which file (extension) has to be specified in regsvr32 "Path to ActiveX control".
For example, if i install a new software which is activeX enabled and i want to register that software in LabVIEW. So, which file do i need to access??????
10-29-2009 02:10 AM
It's a *.ocx
Christian
10-29-2009 02:56 AM
Thanks for the reply.
One more thing.
Does labview automatically registers a new activex control on installation of a new activex software?
10-29-2009 03:00 AM
Registering an ActiveX Object hast nothing to do with LabVIEW. So the answer to your question is no.
Either the Software which installes the ActiveX Object also does the registering or you have to do it manually.
Christian
10-29-2009 03:07 AM
christian wrote:
you have to do it manually
i am asking about this manually only
10-29-2009 05:15 AM
I'm a little bit confused about what you want to know.
However, if you have a registered *.ocx then LV finds the object with the next start.
Christian
10-29-2009 05:22 AM
10-29-2009 06:00 AM
As I said before: "No. LabVIEW has nothing to do with registering an ActiveX Object"
Either this software which installes the object also registers it automatically via a batch file during installation, or you have to do it manually.
Every ActiveX Object has to be registerd by the OS so that it can be used by a ActiveX Client like LabVIEW, Excel, InternetExplorer, other Development Environments, whatever.
Christian
10-29-2009 07:41 AM
Somil,
as Christian said, LV does not register ActiveX server on its own. If you create an ActiveX container and select "Insert ActiveX Object", you will get a dialog. The populated list in this dialog is created by LV. LV asks in the OS which ActiveX server are registered in the system and inserts those servers.
So unregistered ActiveX server do not show up.
Nevertheless, you can insert unregistered ActiveX server as well: You have to switch to "Create Object From File" and browse to the file which includes the ActiveX server.
The file could be an ocx as Christian mentioned or an exe or dll.
hope this helps,
Norbert
10-29-2009 09:40 PM
Thanks Norbert.
I have already tried with .exe and dll. I will soon try with the .ocx file and then post my findings