Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!sdd.hp.com!mips!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!rphroy!cfctech!teemc!sycom!ro-chp!chopps From: chopps@ro-chp.UUCP (Chris Hopps) Newsgroups: comp.sys.amiga.programmer Subject: Re: Dumb windows from SAS/C programs on Workbench Message-ID: Date: 15 May 91 16:35:21 GMT References: <1991May14.164909.19186@NCoast.ORG> Organization: CHS Lines: 28 In article <1991May14.164909.19186@NCoast.ORG> davewt@NCoast.ORG (David Wright) writes: > > Can anyone tell me if there is a simple way to get rid of the stupid >windows that SAS/C opens up by default when you start a program from the >WorkBench? I can obviously diddle with c.a and umain.c to eliminate this, >but it seems like there MUST be an easier way to do this. >[...] There used to be a peice of an Apprentice & Journyman included with Lattice, in the source drawer, but when 5.x came out, it was removed. This file explained all this and some more about optimizing code size from C. I have no Idea why they took this file out, and would appreciate it if they put it back. Anyway to answer your question, declare your main() like this void _main(... ^^^ the underscore tells c.a to not open STDIO/STDOUT (Almost possitive) anyway the net result is that the window disapears. NOTE: I wouldn't advise doing anything that uses STDIO/STDOUT if you do this, ie. printf, puts, gets... under 1.3 it will definitaley crash! > Dave Chris... -- ------------------------ The Royal Oak Chophouse Chris Hopps Royal Oak, Michigan ....umich!wsu-cs!ro-chp!chopps cs.wayne.edu!ro-chp!chopps