User Tools

  • Vistasource Document Library

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rtw_4.5:rtw_com_interface [2013/03/23 13:57]
Philip Wittamore [Creating a VB Application]
rtw_4.5:rtw_com_interface [2018/08/04 20:09] (current)
Line 1: Line 1:
-======RTW COM Interface====== 
 {{:​rtw_4.5:​flat-rtw-wiki.png?​direct|}} {{:​rtw_4.5:​flat-rtw-wiki.png?​direct|}}
 +======RTW COM Interface======
  
 The Vistasource RTW COM Interface allow you to access the Vistasource RTW real-time engines, RTSHARE, or a custom engine from within your own COM applications or from Microsoft Excel (including VBA), enabling you to collect, manipulate and publish data through the DDS of your choice. The Vistasource RTW COM Interface allow you to access the Vistasource RTW real-time engines, RTSHARE, or a custom engine from within your own COM applications or from Microsoft Excel (including VBA), enabling you to collect, manipulate and publish data through the DDS of your choice.
 +
  
 Sample applications are provided in the Application Directory under Samples\COM. ​ We utilize these examples throughout the documentation as we unlock the power of the RTW COM Interface. ​ Sample applications are provided in the Application Directory under Samples\COM. ​ We utilize these examples throughout the documentation as we unlock the power of the RTW COM Interface. ​
Line 8: Line 9:
 See also: See also:
  
-  *  [[About RTW|RTW]] +  * [[rtw_overview|RTW]] 
-  * [[RTW_4.5:RTSHARE]]+  * [[rtshare_overview|RTSHARE]] 
 +=====Components===== 
 + 
 +The COM interface requires the [[installation|Installation of RTW]].\\ 
 +In addition to the RTW and RTSHARE product files, the following COM-related files are installed in the product directory:​ 
 + 
 +^ File name ^Type ^Description ^  
 +|rts.exe ​ | Application | The RTW COM Server ​ | 
 +|VSRtdServer.dll | Application Extension | RTW COM Interface DLL which is loaded by the RTW COM Interface |  
 +|VSRtdServer.h ​ | Include file | Needed to write C or C++ COM-based clients to connect to the RTW COM Server | 
 +|VSRtdServer.tlb | Type Library File | Needed if using "smart pointers"​ in Visual C++ 5.0 or higher |  
 +|VSRtdServer_i.c | C file | Compile and link this into C or C++ client applications | 
 +=== To register and unregister the RTW COM Server manually === 
 + 
 +The RTW COM Server is automatically registered during installation. In order to  manually register or unregister it, enter the following arguments at the  
 +command line:  
 + 
 +|''​C:/<​installdir>/​rts –RegServer''​ |  To register the RTW COM Server as "​VistaSource.RtdServer"​ | 
 +|''​C:/<​installdir>/​rts –UnregServer''​ | To unregister the RTW COM Server | 
 + 
  
  
Line 16: Line 37:
 This section illustrates how to write a custom Visual Basic application using the RTW COM Interface. ​ This section illustrates how to write a custom Visual Basic application using the RTW COM Interface. ​
  
-Assuming that the RTW COM Interface ​is installed, ​and the COM Server is properly registered as described in  [[:​installation#​rtw_com_interface]],  ​the types associated with the COM Interface can be accessed in a COM-compliant language, such as Visual Basic, C++, MS J++ etc. +Assuming that the RTW is installed, the types associated with the COM Interface can be accessed in a COM-compliant language, such as Visual Basic, C++, MS J++ etc. 
  
 The RTW COM Interface provides the "​VSRtdServer 1.0 Type Library."​ The following three methods are exposed by the COM Interface for use by the  The RTW COM Interface provides the "​VSRtdServer 1.0 Type Library."​ The following three methods are exposed by the COM Interface for use by the 
Line 130: Line 151:
 End Sub End Sub
 </​code> ​ </​code> ​
-=====Additional ​Commands=====+=====Commands=====
  
-See: [[additional_rtw_com_interface_commands|Additional ​RTW COM Interface ​commands]] for the COM Server’s ConnectData method.+See: [[rtw_com_interface_commands|RTW COM Interface ​Commands]] and [[rtshare_com_interface_commands|RTSHARE ​COM Interface Commands]]
 ===== Sample Applications ===== ===== Sample Applications =====