lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [Mingw-users] stop dos window from opening




Bob Rossi wrote:

> Basically, I want a configuration that causes no dos popups to be done
> when
> my program is run, and a configuration that allows the program to write
> to the terminal, when it is run from the dos shell.
> 
> Is this possible?

Not if you want to support all versions of Windows.

Background:
....
You can do (work-around) this in another way.
Don't use -mwindows.
In the start-up icon, properties, set to 'minimized'.
Now, at start a command shell is opened, but immediately minimized.

There is, however, a problem with mingw version 3.4.5 (I think). Not only
the command shell is minimized, but also the program window itself!

In the past I used an older mingw, and gtk1.2, and the above approach worked
fine.
After swtiching to gtk2.0, and forced to use a newer mingw compiler, the
described problem pops up.

Using -mwindows gives for me another problem: if the program executes a
command, e.g.:
system("bzip2 foo.bz2")
then a command shell pops up for a short while. So, -mwindows only works for
the program itself.

How can I solve this?
1. How to prevent that the program window is minimized together with the
command shell?
And/Or
2. How to prevent that a system call causes a command shell popup?



-- 
View this message in context: http://www.nabble.com/stop-dos-window-from-opening-tp17456996p18099211.html
Sent from the MinGW - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users