vb-matlab编程,vb调用com组件一直报错
vb-matlab编程出现了一个问题:窗体加载时Private Sub Form_Load()
Dim Data As Double
Dim i, j As Variant
Set thematlab = New setting.setting
Open "E:\2.txt" For Input As #1
n = 0
Do While Not EOF(1)
n = n + 1
Input #1, Data
Loop
Close #1
End Sub
运行到上面第四句就出现一个消息框:上面说是“自动化错误”
我前面用comtool生成dll文件都没问题,在vb中也引用了,
哪位高手可否指点迷津,多谢了!
另外还有一个问题,我的m文件有的可以成功生成com组件,有的却不行,比如下面的一个简单的函数,就显示如下错误
Error using==>comtool.Error.An error occurred while sheling out to mbuild(error code=1).Unable to build executable.
function =hc(x,y)
s=x-y;
p=x+y;
页:
[1]