关于VB调用matlab生成的DLL
我用MATLAB做了一个图像处理的dll,其中有个类叫做shuiyinCOMclass,现在我用VB调用这个dll,编写了如下的程序,但是运行到“Call my_shuiyin.qianru("'yinzhang.jpg'", "'info.jpg'", "'che2.jpg'")”时总出现错误:This application has requested the Runtime to terminate it in an unusual way.Please contact the application''s support team for more information.
Private Sub Command1_Click()
Dim my_shuiyin As New shuiyinCOMclass
Dim hu As Integer
hu = 1
hu = 2
Call my_shuiyin.qianru("'yinzhang.jpg'", "'info.jpg'", "'che2.jpg'")'出错
End Sub
请问这是为什么,我弄了很久都解决不了,哪位大虾知道,请指点一下。谢谢!
[解决办法]
MATLAB编译成COM后,是有许多的函数不支持的,你检查一下用到哪些MATLAB的函数。