C (175/178)

From:Francis G. Loch
Date:31 Jul 2000 at 08:56:03
Subject:Re: WBStartup problem

Hi Charlie (and the others who replied),

--- Charlie <charlie@amigaforever.free-online.co.uk>
wrote: >
> ----- Original Message -----
> From: Andrew Markwell <andrewmarkwell@hotmail.com>
> To: <amiga-c@egroups.com>
> Sent: Friday, July 28, 2000 7:12 AM
> Subject: Re: [amiga-c] WBStartup problem
>
>
> > >From: "Francis G. Loch" <fgloch@yahoo.com>
> >
> > >
> > >Hi all,
> > >
> > >I've got a bit of a problem with one of my
> current
> > >projects in that if I put it in the WBStartup
> drawer
> > >it can cause the computer to hang displaying a
> black
> > >screen.
> > >
> > >Any ideas how I can solve this?
> > >
> > Maybe the program in question doesn't have any
> Workbench startup code?
>
> To put startup code in a Program depends on the
> compiler.
>
> if you are using dice do this:
>
> in your main entry change it to
>
> VOID main(VOID)
>
>
> then in your programat the end do this
>
> int wbmain()
> {
> main();
> }
>
>
> That will put startup code in your program

I've done this and included the WBStartup stuff in my
program. It runs fine by clicking the icon from
Workbench, but it crashes sometimes when you try to
run it from the WBStartup drawer.

Kind regards,

Francis.

=====
e-mail:-fgloch@yahoo.com
web-site:- http://www.geocities.com/fgloch
Member of GAUG
Glasgow Amiga Users Group
*-Join our mailing list-*
gaug-subscribe@egroups.com

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

--------------------------------------------------------------------<e|-
It's the End Of The Line for My Shipping Broker.
http://click.egroups.com/1/5175/1/_/451227/_/965030164/
--------------------------------------------------------------------|e>-