LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X component loading

I am trying to use an Active X library for communication with hardware and am having difficulties getting the library imported into labwindows V7. The hardware vendor will not provide any support for non VB or VC++ environments.

I am using the Tools/Active X controller wizard to try to bring the library into labwindows. When I use this, I get a message saying "Server contains no objects, Check type library". However, I am able to load and access this library using VBA for applications, so I think it is installed properly.

The vendor says something about this active X component not being a control, so no user interface or design time elements are included. Is it possible that this lack of control functionality is causing problems wi
th the labwindows active x wizard? Is there some other way to import this library into labwindows? The vendor supplies raw C++ files, and a .idl file also, could these somehow be imported into labwindows instead of using the activeX?

I attached the .dll file. To test importation, this would have to be copied and registered in the windows registry.

Thanks for any assistance.
0 Kudos
Message 1 of 3
(3,253 Views)
Not much help, but CVI 6 won't import it either. However, Borland C++Builder is happy to import it.

--
Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(3,253 Views)
Looks like this is a problem with the CVI wizard. I have filed a corrective action request for this problem. You cannot use the raw C++ interfaces CVI, since CVI is a C compiler. For a more immediate workaround, you might try creating a wrapper for the dll using VB and VC++. This probably does not have to with the fact that its not a UI control. It seems to use some custom datatypes and I noticed the VC++ classwizard seems to skip generating wrappers for some of the functions as well.

The headers generated by the classwizard seemed to be littered with statements like the following:

// method 'GetLastStreamStandardBlockEx' not emitted because of invalid return type or parameter type
// method 'GetLastStreamCustomBlockEx' not emitted because of invalid retur
n type or parameter type.

The wrapper would be the fastest way around this though.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,253 Views)