Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How would I create a connection from a compiler like C++ to an OLE custom interface?

Primary Software: Driver Software>>NI-FBUS
Primary Software Version: 2.3.5
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: How would I create a connection from a compiler like C++ to an OLE custom interface (like the exe for our servers)?

Solution: An OPC server is actually a COM object. In C++ you connect to an COM object using CoCreateInstance(). From this connection, you can access the other interfaces the OPC server supports and execute methods on those interfaces.

Related Links:

Attachments:





Report Date: 04/23/1998
Last Updated: 12/02/2004
Document ID: 18M7T1TI

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit