Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!ucsd!ames!mailrus!cornell!batcomputer!riley From: riley@batcomputer.tn.cornell.edu (Daniel S. Riley) Newsgroups: comp.sys.amiga.tech Subject: Re: CreateProc() & WBStartup messages Message-ID: <5641@batcomputer.tn.cornell.edu> Date: 25 Jul 88 13:48:24 GMT References: <1472@pembina.UUCP> Reply-To: riley@tcgould.tn.cornell.edu (Daniel S. Riley) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 18 In article <1472@pembina.UUCP> andrew@alberta.UUCP (Andrew Folkins) writes: >Here's the scenario : I want to LoadSeg() and CreateProc() a subprogram >which uses the standard Lattice 4.0 startup code (c.o). Almost everything >works fine : I send the process a fake WBStartup message, it executes, >exits, and I get the message back. Fine. Except that I keep getting >a ToolWindow, even though the WBStartup->sm_ToolWindow is NULL. Any ideas? Actually what's getting you is _main.c, not the ToolWindow code in c.o. The standard _main.c always opens a window when it's started from workbench, so that stdio routines have some place to talk to. To get rid of this, recompile _main.c with -dTINY and the appropriate int size, and link it in after c.o, so yours gets used and not the copy in lc.lib. Note, however, that if you do this, stdin, stdout and stderr will all be completely undefined, and any io to any of them from your "workbench" process will crash your amiga. -Dan Riley (dsr@crnlns.bitnet, dsr@lns61.tn.cornell.edu) -Wilson Lab, Cornell U.