最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。

COM コンポーネントの統合

COM コンポーネントをアプリケーションに統合する

MATLAB® で生成された COM コンポーネントをアプリケーションに統合するには、API の組み合わせを使用する必要があります。MATLAB Compiler SDK™ は API を使用して MATLAB Runtime を初期化し、コンパイルされた MATLAB 関数を MATLAB Runtime に読み込み、COM コンポーネントと MATLAB Runtime の間で渡されるデータを管理します。コンパイラは、コンパイルされた関数のシグネチャに基づいて、いくつかの API を生成します。MATLAB Runtime はすべてのアプリケーションで一貫した他の API を提供します。

MATLAB 関数を Microsoft® Office 製品に統合するには、COM コンポーネントを使用します。MATLAB Compiler™ は、Microsoft Excel® との直接統合を提供しています。

例および操作のヒント

Register and Reference the Utility Library

How to register and reference the utilities you need in your program

Call the Methods of a Class Instance

Describes how you call the class methods to access the encapsulated MATLAB functions

Call COM Objects in Visual C++ Programs

How to integrate a COM object into a Visual C++® program

Pass Arguments

Describes how you can pass multiple arguments as a varargin array by creating a Variant array, assigning each element of the array to the respective input argument

Control Array Formatting and Data Conversion

Describes array formatting and data conversion flags

Use MATLAB Global Variables in Visual Basic

Describes class properties, which allow an object to retain an internal state between method calls

Block Execution of Applications that Create Figures

How to handle interaction in a console-based program that creates MATLAB figures

Obtain Registry Information

How to use MATLAB function componentinfo to query the system registry for any installed COM components created with the MATLAB Compiler SDK product

Integrate Magic Square into a COM Application

Demonstrates the creation of a COM component from a simple MATLAB file

Install COM Components

Describes how to install/deploy created components on target computers

概念

General Techniques

Describes the integration of COM components created with the MATLAB Compiler SDK product into programs

MATLAB Runtime Path Settings for Development and Testing

Path settings to develop and test applications containing packaged MATLAB code.

MATLAB Runtime Options for COM Components

When you roll out a COM component to end users, there are times when you should specify MATLAB Runtime options to create a log file or improve performance.

Share MATLAB Runtime Instances

Information using a singleton MATLAB Runtime to share runtime instances

Handle Errors During a Method Call

Describes the Microsoft Visual Basic® exception handling capability

Component Registration

Describes the registration process for COM components created by the MATLAB Compiler SDK product.

Data Conversion

Converting between MATLAB and COM variants.

Calling Conventions

Describes the calling conventions for COM components created by the MATLAB Compiler SDK product