文档详情

MATCOM与VC++混合编程中自定义函数作为输入参数的调用方法.pdf

发布:2017-05-30约1.03万字共4页下载文档
文本预览下载声明
SOFllWAREDEVElJOPMENTANDDESIGN 软件开发与设计 参数的调用方法 谷社峰,崔瑞华 (大庆油田有限责任公司勘探开发研究院,大庆163712) 摘要:介绍了Matlab和VisualC++混合编程的几种常用方法及怎样设置VisualMATCOM编译环境.重点讨论了 Madab工具箱中某些以自定义函数作为输入参数的函数在Vc++中无法编译的问题。在VisualMATCOM编程环境 下,借助MATCOM内置函数库,实现了VC++对此类函数的直接调用。 关键词:VisualMATCOM;Vc++;函数;输入参数;混合编程 TheMethodof theUser-definedFunctionasthe in Calling InputArgument Mixed withMATCOMandVC++ Programming GU Ruihua Shefeng,CUI Instituteof and Oilfield (Research 163712) ExplorationDevelopment,DaqingCo.Ltd.,Daqing and Abstract:Theseveralconventionalmethods mixed withMATCOMVC++andhowto concerningprogramming complete the MATCOMinstallationwiththe Studioenvironmentare in仃oduced.ItiSdiscussed Visual VC++Developer simply that somefunctionsinMatlabtoolbOXS theuser—definedfunctionasitsone can’tbe VC++ required inputargument compiledby methodof theuFcer—definedfunctionasthe is meanoftheMAT.- argumentpresentedby compilercorrectly.TheCalling input function COM’sbuilt—in library words:Visual Key MATCOM;VC++:Function;Inputargument;Mixedprogramming 1 引言 作为参数的函数之前,先简单介绍一下两者混合编程的常用 Vc++是Windows平台下流行的可视化应用程序开发环境 之一,它为软件开发人员提供了完整的编辑、编译和调试工 方法it-31【母。 2.1 Matlab 具以及建立在Win32APl基础上的MFC类库,可以有效
显示全部
相似文档