<!doctype html public '-//W3C//DTD HTML 4.01//EN'
  'http://www.w3.org/TR/html4/strict.dtd'>
<html>
<title>Isight - Examples</title>
  <head>
	<link rel="stylesheet" href="../../../EStyle.css" type="text/css">
	<link rel="stylesheet" href="../../../ETables.css" type="text/css">
  </head>
<a href="http://www.simulia.com/products/sim_opt.html"><img src="../../../../examples/logo.gif"></a>
<h1>COM Component</h1>

<table>
	<th colspan=2>COM Component Example</th>
	<tr>
		<td>Description:</td>
		<td>This example illustrates basic usage of the COM component.  The COM component allows you
		to interact with COM (Command Object Model) objects that have been registered to the Windows
		operating system.
		<p><br>
		In this simple example we set the values of 2 variables within a registered COM application
		named FiperCOM.  Test and then execute the "add" and "multiply" functions in that application,
		using the return values to set the values of output parameters from the component.
		<p><br>
		To run this example, you must register the dll for this application (FiperCOM.dll) by issuing
		the following command:
		<p><br>
		<code>regsvr32 &lt;examples path&gt;\FiperCOM.dll</code>
		<p><br>
		NOTE:
			<ul>
				<li>If <code>regsvr32</code> is not found on the path, the dll can be registered using the full path to <code>regsvr32</code>, usually <code>C:\WINDOWS\system32\regsvr32</code>.</li>
			    	<li>This example is currently only supported in the 32 bit Gateway, which can be run on a 64 bit version of Windows.</li>
			</ul>

		</td>
	</tr>
	<tr>
		<td>Model:</td>
		<td><a href="COM-Loop.zmf">COM-Loop.zmf</a></td>
	</tr>
	<tr>
		<td>Illustrated components:</td>
		<td>Loop, COM</td>
	</tr>
	<tr>
		<td>Other illustrated features:</td>
		<td>
			None.
		</td>
	</tr>
	<tr>
		<td>Simcodes needed:</td>
		<td>None</td>
	</tr>
	<tr>
		<td>Support files needed:</td>
		<td><a href="FiperCOM.dll">FiperCOM.dll</a></td></td>
	</tr>
</table>

</html>
