声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 984|回复: 0

[混合编程] 求助:做COM组件时出现错误,求高手指点

[复制链接]
发表于 2008-8-13 20:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
小弟根据http://www.vckbase.com/document/viewdoc/?id=1489做COM组件的例子逐条编译,在编译前先设置系统环境变量,并使用mbuild -setup命令链接编译器,情况如下:
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:

Would you like mbuild to locate installed compilers [y]/n? y

Select a compiler:
[1] Lcc C version 2.4.1 in C:\APPLICATION\MATLAB\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in D:\Program Files

[0] None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: D:\Program Files

Are these correct?([y]/n): y
Warning: Mbuild requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find a directory named "Common" in the directory 'D:\Program Files'.)
Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14SP3\compopts.bat
From template:              C:\APPLICATION\MATLAB\BIN\win32\mbuildopts\msvc60compp.bat

Done . . .


--> ""C:\Application\MATLAB\bin\win32\mwregsvr" "C:\Application\MATLAB\bin\win32\mwcomutil.dll""

DllRegisterServer in C:\Application\MATLAB\bin\win32\mwcomutil.dll succeeded

--> ""C:\Application\MATLAB\bin\win32\mwregsvr" "C:\Application\MATLAB\bin\win32\mwcommgr.dll""

DllRegisterServer in C:\Application\MATLAB\bin\win32\mwcommgr.dll succeeded
然后在command window中输入comtool命令,做COM组件,在添加*.m文件后生成COM组件的时候出现了如下错误:
请教各位高手,应该如何解决此问题!
错误提示.jpg
COM错误提示.jpg
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-29 04:16 , Processed in 0.079298 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表