LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Create ActiveX server in CVI

Hi
  I like the activeX function, which I can operate Excel and .etc from CVI quite easily. Recently I'm learning to create ActiveX server in CVI, and I'm doubting that could be very useful and pratical in CVI, since in most cases, building ActiveX needs more efforts compared with common DLLs. One possible advatage over DLLs is that it could be object-oriented which benefits programming better when building a complicated program. Here, I would like to see more pratical examples used in industry by using "Create ActiveX server wizard" tool.
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 8
(4,460 Views)
I think CVI is not a strong tool for creating COM (including ActiveX) servers.  The Microsoft COM architecture is very specific to C++ v-table mechanism, therefore C++ is the best tool for creating them.  Especially ATL (Active Template Library) bundled with VC++ 6.0/2002/2003/2005 is the best library for COM.  It is physically possible to use pure C languages (such as CVI) for creating COM servers, but you will have to implement pseudo v-table mechanism and object instance (= THIS pointer) management from scratch.  It looks like too difficult.  I highly recommend to use VC++.
0 Kudos
Message 2 of 8
(4,447 Views)
Jacky,

You can find four examples of ActiveX servers created using the wizard in the samples\activex\servers folder. Hopefully those will help you some.

Luis
0 Kudos
Message 3 of 8
(4,406 Views)

I can not open the linkage, nor download . Could you post here?

 

Thanks!

Jacky

0 Kudos
Message 5 of 8
(4,376 Views)
cool place.
0 Kudos
Message 6 of 8
(4,327 Views)
>>cool place.
But apparently only accessable from inside the NI domain.  I dont think the rest of us can get to it.
0 Kudos
Message 7 of 8
(4,315 Views)
Here are the external links.


http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=FEE2836A56E43D14E0340003BA7CCD71&p_node=DZ52000&p_source=External

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=BC14007242F726F4E034080020E74861&p_node=DZ52156&p_source=External


These are useful for using learning how to use existing activex controls from CVI, not for creating a server using CVI. I would refer to the shipping examples (already installed on your system with CVI) Luis mentioned in this post for information about that.

Thanks

Bilal Durrani
NI
0 Kudos
Message 8 of 8
(4,305 Views)