chymes@zug.csmil.umich.edu (Charles Hymes) (01/20/90)
Thirdly, does anyone have a internet address for Manx technical support so that I can ask them these dumb questions instead of you good people :-). Thanks Chymes, only sometimes a Ding-Dong.
doug@xdos.UUCP (Doug Merritt) (01/22/90)
In article <1990Jan19.161350.9943@csmil.umich.edu> brode@csmil.umich.edu (Jon Brode) writes: >----------------- >Does anyone know how to work with Manx's startup code for programs to >run from the workbench? Specifically, does WBStartup get passed to argv >even if you just use main(argv,argc). See the source supplied with your compiler, src/_main.c. The answer is "not exactly". In this case, argc == 0 (whereas in a CLI environment it'll always be >= 1), and you look through "extern struct WBStartup *WBenchMsg" to find any workbench arguments (locks on shift-clicked icons, etc). Pretty straightforward. Just remember to be careful of doing i/o like printf() without a window (fireworks mode). In order to get stdio functions like printf to write to the window you opened as opposed to causing fireworks, I think you have to do: handle = Open("CON:0/0/200/320/MyName", MODE_NEWFILE); _devtab[0] = handle; /* reset stdin */ _devtab[1] = handle; /* reset stdout */ _devtab[2] = handle; /* reset stderr */ Or something like that. Again see _main.c. Doug -- Doug Merritt {pyramid,apple}!xdos!doug Member, Crusaders for a Better Tomorrow Professional Wildeyed Visionary