Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2010
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)
and such.
 
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
-------------
update:
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.
Posted 30-Jul-12 9:23am
Edited 30-Jul-12 11:07am
v2
Comments
Wes Aday at 30-Jul-12 14:30pm
   
I have never heard of anything that had a .tlb as a dependency.
SandiegoSSD at 30-Jul-12 16:06pm
   
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.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I'm guessing the interop needs the typelib to marshal with
 
So, yes, you need it
 
I'd investigate why it failed to register - again, normally this is caused by the installing user not having registry write access
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 398
1 DamithSL 255
2 OriginalGriff 230
3 Zoltán Zörgő 149
4 Dave Kreskowiak 120
0 OriginalGriff 7,575
1 DamithSL 5,529
2 Sergey Alexandrovich Kryukov 5,279
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 30 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100