This seems to work when adding -s gui to the building parameter.
Example: fbc.exe" -b "Test.bas" -gen gcc -Wc -Ofast -s gui
When you omit -s gui console will be shown by default.
Console off
Re: Console off
I guess I missed the addition of __FB_GUI__ in the changelog; added in fbc 1.06.0dodicat wrote:You can use switch -s gui.
Example:
fbc -s gui myfile.bas
But make sure that myfile.bas is graphical, otherwise you might need the task manager to kill it.
__FB_GUI__ could be used to make sure there is a graphical output. For example, this code will generate visible output regardless of '-s gui' given or not.
Code: Select all
#if __FB_GUI__
'' compiled with '-s gui'?
'' make sure we have an output screen
screenres 640, 480, 8
#endif
dim shared colors(0 to 15) as zstring * 16 = { _
"black", "blue", "green", "cyan", _
"red", "magenta", "orange", "white", _
"gray", "bright blue", "bright green", "bright cyan", _
"bright red", "bright magenta", "yellow", "bright white" _
}
for i as integer = 0 to 15
color i
print colors(i)
next
sleep
Re: Console off
See different console possibilities with windows
viewtopic.php?f=6&t=27500
even if compiled with -s gui option ( without console) , it is always possible to get (create) one
thats interresting to trace some info at running time
viewtopic.php?f=6&t=27500
even if compiled with -s gui option ( without console) , it is always possible to get (create) one
thats interresting to trace some info at running time