Hi guys, I have a project that calls Matlab as a COM server.
I define : ML = CreateObject("Matlab.Application")
and use ML.Execute("...") or Call ML.PutWorkspaceData("x", "base", z)
Recently when I deployed the project in VS2010 Win7 and get the setup.exe, and run it on an XP machine,
I got an error during installation : Could not register type library for file MLApp.tlb...
And when I exclude the MLApp.tlb from the installer project, build it again , the installer run on the XP with no errors.
So I'm just wondering whether the MLApp.tlb is necessary for the application. The workaround by excluding it from the installer project works
probably only because I have installed that program on that XP several times and the library was already registered, or some other reasons.
Any ideas appreciated.Thx
The project was upgraded from vb6 to .net, and it used to define ML as
ML = New MLApp.MLApp
I guess after switching to ML = CreateObject("Matlab.Application") during the upgrade, things changed.
I do remember during debug that I had to add the MLApp as a reference in the .net project to get rid of some debug errors.