Author Topic: Application SubSystem  (Read 3811 times)

0 Members and 1 Guest are viewing this topic.

efgee

  • Guest
Application SubSystem
« on: October 08, 2010, 08:27:03 PM »
Hello Charles,
it would be nice if you would consider to add a #SubSystem as a compiler directive.

The reason is that the SubSystem seems to be hardwired to type 2; but with a type 2 SubSystem the program will always open a new console.
For console applications type 3 is the correct one because if the program is started in a console window that console is used - instead of opening a new console.

Subsystem 2 = CGI and GUI applications
Subsystem 3 = CONSOLE applications

Thanks
efgee

Charles Pegge

  • Guest
Re: Application SubSystem
« Reply #1 on: October 08, 2010, 09:53:02 PM »

Yes sure efgee, we could do it by number or label eg: #subsystem console

I will put this into the next update.

This will work for programs compiled to PE but programs run directly will of course take on the host's Subsystem.

If you use exo2.exe to launch a script directly eg: exo2 MyConsoleApp.o2bas it should run the application within the existing console. (gxo2.exe is for non-console launching)

Charles

efgee

  • Guest
Re: Application SubSystem
« Reply #2 on: October 09, 2010, 07:08:20 AM »
Labels would be awesome.

Thanks
efgee

Charles Pegge

  • Guest
Re: Application SubSystem
« Reply #3 on: October 09, 2010, 10:49:25 AM »

Since we are only concerned with console and non-console subSystems, I thought it might be easier just to say #console when the program expects to connect with an existing console. It's a little easier to remember anyway, and I've coded it in.

Charles

efgee

  • Guest
Re: Application SubSystem
« Reply #4 on: October 09, 2010, 11:49:53 AM »
Sounds good.

efgee