LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Active and LabVIEW

Hello,
I need to create a dll in LabVIEW and use it within other programming
languages. I tried creating a simple program that performs a sum, and
created a dll from it; the problem is that when I ty to register it in the
windows registry (to use it from other languages) I get an error to the
effect that my dll is not an activex.

Is there a way to do this in labview (6i)?

Thank you
0 Kudos
Message 1 of 4
(2,992 Views)
Hi,

Windows needs certain dll functions inside a dll, to be able to register the
dll. The functions DllRegisterServer and DllUnregisterServer must be
present, and should be functions that put information about the dll in the
registry. (You might try putting the information inside the registry by
hand...)

To use dlls in programs, a dll does not need to be registered.

More information can be found at Microsofts website.

Regards,

Wiebe.



Btw: Microsoft documentation says:
Registering Components
When the following types of applications are installed, installation
information must be added to the registry, usually through a setup program:

a.. Server applications
b.. Container/server applications
c.. Container applications that allow linking to emb
edded objects
For all three instances, register COM library (DLL) information and
application-specific information.

The DLL registers the information for all its components by exporting
DllRegisterServer and DllUnregisterServer. Use the following functions to
register and unregister a component:

a.. RegOpenKeyEx
b.. RegCreateKeyEx
c.. RegSetValueEx
d.. RegEnumKeyEx
e.. RegDeleteKey
f.. RegCloseKey







"Marcello Barboni" wrote in message
news:Xns9203621D2A78Fnospamnospamit@130.251.200.249...
> Hello,
> I need to create a dll in LabVIEW and use it within other programming
> languages. I tried creating a simple program that performs a sum, and
> created a dll from it; the problem is that when I ty to register it in the
> windows registry (to use it from other languages) I get an error to the
> effect that my dll is not an activex.
>
> Is there a way to do this in labview (6i)?
>
> Thank you
0 Kudos
Message 2 of 4
(2,992 Views)
In article , wiebe@air.nl says...
> Hi,


Thank you
--
So long, and thanks for all the fish
0 Kudos
Message 3 of 4
(2,992 Views)
ah, another Hitchhiker fan!

"Marcello Barboni" wrote in message
news:MPG.1740d0e02f7ab0d79896e0@powernews.infostrada.it...
> In article , wiebe@air.nl says...
> > Hi,
>
>
> Thank you
> --
> So long, and thanks for all the fish
0 Kudos
Message 4 of 4
(2,991 Views)