From: Ashish Uthama on 8 Apr 2010 15:23 On Thu, 08 Apr 2010 05:45:14 -0300, Daniel <daniel.c.braun(a)web.de> wrote: > I tried the command >>> h = actxserver('matlab.application') > but got the error message > > ??? Error using ==> feval > Server Creation Failed > > But the command hExcel = actxserver('excel.application') does work. > > I added the path matlabroot/bin/win32 with: addpath > > I tried to register the server in the Maltab command window and in a dos > command window with: matlab regserver > > In Matlab I get the error Message: > ??? Undefined function or variable 'matlab'. > and in Dos I don't get any messages but it seems to do nothing. You would have to change the current directory to where MATLAB is actually installed. DOS will not be able to find the executable unless you are in the same directory or the MATLAB dir is on the _windows system path_. Also, I think the syntax is matlab -regserver Try this: -open a dos shell -cd into the directory with the matlab.exe file -execute: matlab -regserver A MATLAB command window ought to come up (an indication that the registration was successful). > > I found the dlls mwcomutil and mwcomgr as well as the exe mwregsvr in a > folder of a previously installations. I'm not sure where they come from. > I moved them into the win32 folder of my current installation and tried > to register them with > mwregsvr mwcomutil but then I got the message: > My Own Exception: Fatal error finding symbol mxGetProperty_700 in > C:Prorgramme\Matlab2\R2007b\win32\lib.mx.dll Error: > Error: 0c0000045a Message: A DLL initialization failed. By previous installation, I hope you mean of the same version. The files cannot be expected to be interchangeable between different versions. Either way, maybe a re-installation is in order. > > And still I can't start a Matlab COM Object > > I don't know what to do now. > Thanks for any help
From: Daniel on 9 Apr 2010 02:28 Thank you for your answer, I now completely installed matlab new and did the matlab -regserver command in the folder matlabroot\bin\win32 but there didn't come up any windows for successful registration.
From: Ashish Uthama on 9 Apr 2010 09:33 On Fri, 09 Apr 2010 03:28:03 -0300, Daniel <daniel.c.braun(a)web.de> wrote: > Thank you for your answer, > > I now completely installed matlab new and did the matlab -regserver > command in the folder matlabroot\bin\win32 but there didn't come up any > windows for successful registration. ....am out of ideas. I would recommend contacting tech support: http://www.mathworks.de/support/contact_us/index.html You could also try going through http://www.mathworks.com/cgi-bin/texis/webinator/search/ (search for 'regserver') to see if something useful crops up.
From: Diego Alvarez Estevez on 13 Apr 2010 08:12
Hi, I'm trying a very similar thing. I'm using delphi 7 and I wnat to call a .net component exported with the Matlab Compiler NE. Once the component was exported to the corresponding DLL, I use the following lines in my delphi program: Var DotNetObject : OleVariant; .... DotNetObject:=CreateOleObject('myComponent.MyClass'); //line 1 DotNetObject.myMethod(); //line 2 I got an EOLeSysError exception when the program reaches line #1 'OLE error 80131534' which makes me thing that it could be a problem with the Matlab Compiler Runtime. Actually I don't know how to link the MWArray.dll from my delphi project, also I'm not really sure if I need to do so I already success calling this component from visual studio (C#) and using delphi prism (which is the new delphi.net version from Embarcadero). There I have to link the above dll in order to make it work. However, my problem is that what I really need it to call the component from delphi 7, and I'm unable to do it Any help? Somebody can give me some advice? Thanks a lot |