Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Calling Matlab from a  Plugin
Date: Mon, 18 Aug 2008 15:06:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <g8c34p$csa$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219071962 13194 172.30.248.37 (18 Aug 2008 15:06:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 Aug 2008 15:06:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1414996
Xref: news.mathworks.com comp.soft-sys.matlab:486047



Hi,

I am trying to make a Plugin for a geomodeling software 
called Gocad. The plugin's code is written in VS C++/CLI, 
and  I would like to use matlab to do some operations 
inside the C++ code by calling the matlab engine. The code 
compile without any errors, but when I run the plugin to 
test it, the matlab engine closes as soon as it open 
before executing any matlab command. The misterious thing 
is that this problem does not occur when I call matlab 
from  a simple VS C++ project without CLI.

Coul you please help me to resolve this problem.

Nasreddine