Re: How to avoid the console from apearing.

2010-08-19 Thread Lars T. Kyllingstad
On Wed, 18 Aug 2010 13:50:34 -0400, Nick Sabalausky wrote: > "Steven Schveighoffer" wrote in message > news:op.vhl46mdneav...@localhost.localdomain... >> >> Changes are afoot to std.process, we recently got a blocker fixed (not >> yet in svn, but someone submitted a correct patch) >> >> > Issue #

Re: How to avoid the console from apearing.

2010-08-18 Thread Nick Sabalausky
"Steven Schveighoffer" wrote in message news:op.vhl46mdneav...@localhost.localdomain... > > Changes are afoot to std.process, we recently got a blocker fixed (not yet > in svn, but someone submitted a correct patch) > Issue #?

Re: How to avoid the console from apearing.

2010-08-17 Thread Steven Schveighoffer
On Tue, 17 Aug 2010 17:40:02 -0400, John Connors wrote: Hi. This is my entire program: import std.process: system; int main(string[] argv) { return system(r"bin\someprogram.exe"); } It works but a console (from my program) apears while someprogram.exe is running. I've read that so

Re: How to avoid the console from apearing.

2010-08-17 Thread John Connors
That worked. Thanks. Still wonder why execvp with a simple main() (someprogram.exe is not executed). But for now the WinMain() version will do. Thanks again.

Re: How to avoid the console from apearing.

2010-08-17 Thread Michal Minich
On Tue, 17 Aug 2010 22:27:19 +, John Connors wrote: > The console is still showing. Any ideas why? try std.process.execvp

Re: How to avoid the console from apearing.

2010-08-17 Thread John Connors
My small loader is not so small anymore. I've modified it according to the sample but the console is still showing: import core.runtime; import std.c.windows.windows; import std.process: system; extern (Windows) int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS

Re: How to avoid the console from apearing.

2010-08-17 Thread Michael Parrott
Michal Minich Wrote: > On Tue, 17 Aug 2010 21:40:02 +, John Connors wrote: > > > Hi. > > > > This is my entire program: > > > > import std.process: system; > > > > int main(string[] argv) > > { > > return system(r"bin\someprogram.exe"); > > } > > > > It works but a console (from my pr

Re: How to avoid the console from apearing.

2010-08-17 Thread Yao G.
On Tue, 17 Aug 2010 16:40:02 -0500, John Connors wrote: [snip] It works but a console (from my program) apears while someprogram.exe is running. I've read that some optlink switches are needed to make the console disapear. Try using WinMain instead of main: --- import core.runtime; imp

Re: How to avoid the console from apearing.

2010-08-17 Thread Michal Minich
On Tue, 17 Aug 2010 22:01:06 +, Michal Minich wrote: >> Do you care to give me the correct switches? >> >> Thanks > > this example does not shows console. Maybe you can simplify it. > http://digitalmars.com/d/2.0/windows.html It was mentioned on NG that you don't need anymore WinMain and in

Re: How to avoid the console from apearing.

2010-08-17 Thread Michal Minich
On Tue, 17 Aug 2010 21:40:02 +, John Connors wrote: > Hi. > > This is my entire program: > > import std.process: system; > > int main(string[] argv) > { > return system(r"bin\someprogram.exe"); > } > > It works but a console (from my program) apears while someprogram.exe is > running

How to avoid the console from apearing.

2010-08-17 Thread John Connors
Hi. This is my entire program: import std.process: system; int main(string[] argv) { return system(r"bin\someprogram.exe"); } It works but a console (from my program) apears while someprogram.exe is running. I've read that some optlink switches are needed to make the console disapear. T