C (118/254)

From:Allan Odgaard
Date:05 Apr 00 at 22:26:14
Subject:Re: Please! Workbench and console...

On 05-Apr-00, Alexander Niven-Jenkins wrote:

> I'm not the only one, but attached is a really small example program.
> Can somebody in the know make the necesary changes so that on loading from
> workbench output is printed to a CLI.

First of all don't check if argc is zero and don't cast argv to a wbstartup
msg.

*For the last time:* You have one main() with standard ANSI-C invocation and
one wbmain() which are invoked with the WBStartup-message.

But if you use stormamiga.lib (which your define hints) then just do a normal
main, cause stormamiga.lib will supply a wbmain() which should setup stdin/out
and call main()...

Regards Allan

------------------------------------------------------------------------
Get a NextCard Visa, in 30 seconds!
1. Fill in the brief application
2. Receive approval decision within 30 seconds
3. Get rates as low as 2.9% Intro or 9.9% Fixed APR
Apply NOW!
http://click.egroups.com/1/2646/1/_/451227/_/954970369/
------------------------------------------------------------------------