Skip to Main Content Skip to Search
Product Documentation

Component Access On Another Computer

To implement your .NET component on a computer other than the one on which it was built:

  1. If the component is not already installed on the machine where you want to develop your application, run the self-extracting executable that you created in The Magic Square Example.

    This step is not necessary if you are developing your application on the same machine where you created the .NET component.

  2. Reference the .NET component in your Microsoft Visual Studio project or from the command line of a CLS-compliant compiler.

    You must also add a reference to the MWArray component in matlabroot\toolbox\dotnetbuilder\bin\architecture\framework_version. See Supported Microsoft .NET Framework Versions for a list of supported framework versions.

  3. Instantiate the generated .NET Builder classes and call the class methods as you would with any .NET class. To marshal data between the native .NET types and the MATLAB array type, you need to use either the MWArray data conversion classes or the MWArray native API. See MWArray Class Library Reference (available online only) for details about the MWArray API for this class library.

      Tip   Learn about creating type-safe interfaces for .NET components, in order to avoid data conversion tasks with MWArray. See Type-Safe Interfaces, WCF, and MEF for details.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS