How to avoid the console from apearing.

John Connors JohnConnors at mailinator.com
Tue Aug 17 14:40:02 PDT 2010


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. Tried the following (which I found in DM FAQ), but don't seem to work:

dmd -L/exet:nt/su:windows loader.d resource.res

The console keeps appearing.

Do you care to give me the correct switches?

Thanks


More information about the Digitalmars-d-learn mailing list