Invoking Method on Object Instantiated From DLL
<p>I am having some trouble with assemblies and DLL's.</p>

<p>instrument_ is declared as an object and I'm creating an instance of "PP150" from the dll whose path is specified by path_.</p>

<pre><code>string className = ContineoProperties.getSingleton().getClassName(path_);
assembly_ = Assembly.LoadFrom(path_);
Type classType = assembly_.GetType("Instrument." + className);
instrument_ = Activator.CreateInstance(classType);
</code></pre>

<p>Later I to call the method <code>isntrument_.instrumentCommand(cmd.getCommandName())</code></p>

<p>The error I get is with when i call the method.</p>

<blockquote>
  <p>'object' does not contain a definition for 'instrumentCommand'</p>
</blockquote>

<p>The isntrument_ is created fine. its just the method call that's giving me a problem. The method does exist in the "PP150.dll". Do I need some DLLImport to allow it to recognize it as a function? </p>

<p>Thanks, 
P</p>
