Thread Subject: Suppressing Command Window in Engine Applications

Subject: Suppressing Command Window in Engine Applications

From: Arisa Onwuka

Date: 15 Dec, 2008 20:36:02

Message: 1 of 3

Hello All,

i am building MATLAB Engine Applicationsbut each time i execute my .exe files (compiled engine files), the command window comes up along with the graphs and figures that i plotted.

Please can any one advise me on how to suppress this command window.

Thanks

Subject: Suppressing Command Window in Engine Applications

From: Ashish Uthama

Date: 15 Dec, 2008 22:06:19

Message: 2 of 3

On Mon, 15 Dec 2008 15:36:02 -0500, Arisa Onwuka <onwuka.arisa@ieee.org>
wrote:

> Hello All,
>
> i am building MATLAB Engine Applicationsbut each time i execute my .exe
> files (compiled engine files), the command window comes up along with
> the graphs and figures that i plotted.
>
> Please can any one advise me on how to suppress this command window.
>
> Thanks

This might be due to the application being compiled as a 'console' app.

You could try building a non-console application (I do not know the
details) in visual studio outside MATLAB.
Some info on compiling engine source code using visual studio:
http://www.mathworks.com/support/solutions/data/1-78077S.html?solution=1-78077S

Subject: Suppressing Command Window in Engine Applications

From: James Tursa

Date: 16 Dec, 2008 09:17:03

Message: 3 of 3

"Arisa Onwuka" <onwuka.arisa@ieee.org> wrote in message <gi6f3i$gq3$1@fred.mathworks.com>...
> Hello All,
>
> i am building MATLAB Engine Applicationsbut each time i execute my .exe files (compiled engine files), the command window comes up along with the graphs and figures that i plotted.
>
> Please can any one advise me on how to suppress this command window.
>
> Thanks

See the API function engSetVisible. For example, to make the command window invisible, do this:

    engSetVisible(ep, 0);

where ep is the Engine pointer that has already been returned from engOpen.

James Tursa

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com