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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com