主题:我在matlab下做COM组件时遇到了些问题,想请各位高手指教!
我在matlab下做COM组件时遇到了些问题,想请各位高手指教!
我使用的是MATLAB 7.1
我的M文件中的代码是:
function y=myadd(a,b)
y=a+b;
我在MATLAB Builder下编译先出现了以下的对话框:
对话框显示 ERROR USING>BASICUI>BUILD
ERROR EXECUTING MCC,RETURN STATUS=1
Building COM object...
mcc -M -silentsetup -d 'D:/matlab2006/work/mytestaddd/src' -B 'ccom:mytestaddd,mytestadddclass,1.0' -g 'D:/matlab2006/work/mytestaddd/myadd.m'
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
mytestaddd_idl.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
mwcomtypes.idl
'rc' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:/MATLAB2006/BIN/MEX.PL: Error: Resource compile of 'mytestaddd.rc' failed.
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information). [em2][em2]
我使用的是MATLAB 7.1
我的M文件中的代码是:
function y=myadd(a,b)
y=a+b;
我在MATLAB Builder下编译先出现了以下的对话框:
对话框显示 ERROR USING>BASICUI>BUILD
ERROR EXECUTING MCC,RETURN STATUS=1
Building COM object...
mcc -M -silentsetup -d 'D:/matlab2006/work/mytestaddd/src' -B 'ccom:mytestaddd,mytestadddclass,1.0' -g 'D:/matlab2006/work/mytestaddd/myadd.m'
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
mytestaddd_idl.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
mwcomtypes.idl
'rc' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:/MATLAB2006/BIN/MEX.PL: Error: Resource compile of 'mytestaddd.rc' failed.
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information). [em2][em2]