C (119/254)

From:Alexander Niven-Jenkins
Date:05 Apr 00 at 23:20:18
Subject:Re: Please! Workbench and console...

Hiya Allan,

On 05-Apr-00, you wrote:

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

So you keep saying, for example:

/********************
*** test program ***
********************/

#define STORMAMIGA

#include <stormamiga.h>
#include <workbench/startup.h>
#include <iostream.h>

void main()
{
cout << "workbench" << endl;
}

> 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()...

If run via CLI it prints 'workbench', but if run from WB I do not get any
output. That's the problem! And I think the problem the other person on
the list is having.

Kind regards...

Alex



Cremlin Software - http://www.cremlinsoftware.org
Founder, lead programmer - ghandi@cremlinsoftware.org
Production, programmer - anj@cremlinsoftware.org

------------------------------------------------------------------------
GET A NEXTCARD VISA, in 30 seconds! Get rates as low as 2.9%
Intro or 9.9% Fixed APR and no hidden fees. Apply NOW!
http://click.egroups.com/1/936/1/_/451227/_/954976833/
------------------------------------------------------------------------