Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 15th, 2006, 01:16 AM
Authorized User
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to karveajit
Default Problem accessing Simulink models from C#


     I want to access Simulink models from C#. I've added MATLAB Type Library reference in console App. But, When I call any function, it gives following error:
"An unhandled exception of type 'System.InvalidCastException' occurred in TestApp.exe

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

Also find the piece of code:
MLApp.MLAppClass matlab = new MLApp.MLAppClass();

Hoping for positive response.

Thanks and Regards,
Ajit Karve

Old July 14th, 2006, 12:55 AM
Registered User
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

hi Ajit Karve,
any success of linking Simulink with C#?

I am interested to look into this application also.

Thiam Huat

Similar Threads
Thread Thread Starter Forum Replies Last Post
XnaShooter loading .X models problem hellspawn_bg BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 December 5th, 2007 08:16 AM
Report Builder Models? SQLScott Reporting Services 2 October 26th, 2007 01:34 PM
3D Models with fbx extension JayCeKay BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 0 June 2nd, 2007 09:29 PM
Big models question darrinps BOOK: Expert One-on-One J2EE Design and Development 0 June 4th, 2003 02:10 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.