Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Interoperating a MATLAB COM

jjerryjjerry Posts: 4Member
Has anyone had any experience using MATLAB Application Type Library,
mlapp.tlb, imported in a C# project? I am having some difficulties
making this work, it should be easy as pie.. There's this fundamental class, MlAppClass, which works fine up to a point, when you make an instance of it, MATLAB Command Window opens, but trying anything else fails miserably and causes this:

"An unhandled exception of type 'System.InvalidCastException' occurred in mscorlib.dll

Additional information: QueryInterface for interface mlapprcw.DIMLApp failed."

(mlapprcw is the result of "TLBImp.exe mlapp.tlb")

I'm probably asking for too much, but could anyone perhaps look
into it, please? All I need is passing arrays and drawing commands
to MATLAB..
Sign In or Register to comment.