LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

build an application probleme with active x

I have create a programme with an active X Idtpicker (active x in microsoft common object.
There is no probleme when running in my pc. When I build an application and I run the executable my active X object doesnt work.
what is the dll or dynamic vi to add when creating the application?
Moreover i am using database tools for odbc database but it doesnt work. What is the vi to add when creating the executable?
thanks
thierry
0 Kudos
Message 1 of 3
(2,956 Views)
Hello,

When you develop an application that contains ActiveX controls and then create an executable out of it, the ActiveX controls need to be registered with the target operating system at install-time.

First, have a look to the KB below:
How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?
http://digital.ni.com/public.nsf/websearch/4F811A9B23F1D46E862566F700615B7A?OpenDocument

If you want to have the LabVIEW .exe installer register an ActiveX dll, you can do as follow:

To have the LabVIEW installer register an ActiveX dll for you, write a LabVIEW executable that uses the System Exec VI to register the ActiveX dll. Use the same command string as you would use in the Start » Run menu to register the dll. The System Exec VI
is in Functions Palette»Communications.

When building the Installer under the Installer Settings»Advanced... Select "Run executable after installation" and add the above executable to the "Executable" line. Therefore when the installer is finished your executable that registers the dll will automatically run.

Concerning your issue executables using VIs for database, check the KB below if your building process is correct.
Building Stand-Alone Executables With Database Connectivity Toolkit VIs
http://digital.ni.com/public.nsf/websearch/FCCCBC6B519CEC2E86256C95007E8FA9?OpenDocument

I hope this will help.
Best Regards.
0 Kudos
Message 2 of 3
(2,951 Views)

Hi Thierry -- 

I think that I'm having a similar problem to the one that you described.  I haven't yet been able to resolve it so I posted a new question relevant to my specific problem at (http://forums.ni.com/ni/board/message?board.id=170&message.id=179673

Have you resolved your problem yet?

Sincerely,

John

0 Kudos
Message 3 of 3
(2,806 Views)