作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (15): 70-.

• 论文 • 上一篇    下一篇

基于COM的Matlab与C++Builder混合编程

刘先勇,胡劲松,周方洁,李红雷   

  1. 北京理工大学信息科学与技术学院博士后流动站,宁波理工监测设备有限公司(博士后工作站),宁波理工监测设备有限公司(博士后工作站),宁波理工监测设备有限公司(博士后工作站) 宁波理工监测设备有限公司(博士后工作站),宁波 315800,宁波 315800 浙江大学机械系博士后流动站,宁波 315800清华大学电机系博士后流动站北京 100084
  • 发布日期:2004-08-15

COM-based Matlab and C++Builder Mixed Programming

LIU Xianyong, HU Jingsong, ZHOU Fangjie, LI Honglei   

  • Published:2004-08-15

摘要: 摘要:以实例展示了通过Mlatlab6.5制作、并在c+十Bu.1der5环境中调用eOM组件的混合编程方法。给出了设置lM譬lab COM Bu.Ider编译环 境的具体步骤,编译生成了与Mierosoft Windows~兼容的e0M组件;在c++Builder下调用组件时通过安全数组的传灭传出实现了应用程序与 COM的数据接n,并通过简单的事件响应工程成功调用了所制作的实例组件。

关键词: COM, Matlab, C++Builder, 混合编程

Abstract: An example is constructed to demonstrate the mixed programming with a COM component made in Matlab6.5 and called in C++ Builder. Detail step is given on setting the compiling environment and a COM component compatible with Microsoft Windows is compiled and made. The data interface between COM component and applications is realized by transferring safe array while calling COM component under C++ Builder, and the example COM component is successfully called by a simple event response project.

中图分类号: