VB调用matlab生成的DLL失败

使用matlab生成DLL时显示

??? Error using ==> mbuild
Unable to complete successfully

弹出对话框内容为:

??? Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information).

但是目录下已经生成了DLL文件,可是调用它VB提示ACTIVEX部件不能创建对象
这是出错过程的代码:
Private n As Double
Private n2 As Double
Private PP As PPCOM.PPCOMclass
Set PP = New PPCOM.PPCOMclass 提示这句出错

怎么回事呢,如何解决?

第1个回答  2014-06-10
可以试着改变编译的CPU为X86,不要使用AnyCpu
以上回答你满意么?追问

怎么改变?在VB里改变还是MATLAB,是VB6

相似回答