![]() |
![]() |
#1 |
Registered User
Join Date: May 2009
Location: Leicester/U.K
Posts: 36
|
problem launching my program using an icon
My program wont launch when I create an associated .info file.
The icon type is a tool but still wont run. Do I need to add some special code for it to run from WB with an icon, or is there some option in the compiler I need to use? I'm using Hisoft c/c++ compiler. Thanks. |
![]() |
![]() |
#2 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
I assume the appropriate flags are set (Read, Write, Execute and Deletable - you really only need the Exexcute flag to be set, but it's good to have all 4) in the info file?
|
![]() |
![]() |
#3 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
Quote:
I don't know Hisoft, but Dice C for example calls main() only from CLI and wbmain() from Workbench. To remain compatible with other compilers I usually do something like this: Code:
void wbmain (struct WBStartup *wbmsg) { main (0,(char **)wbmsg); } |
|
![]() |
![]() |
#4 | |
Registered User
Join Date: May 2009
Location: Leicester/U.K
Posts: 36
|
Quote:
The Flags were set. It turned out to be not including the "wbstartup.h" header file in my project. Thanks |
|
![]() |
![]() |
#5 | |
Registered User
Join Date: May 2009
Location: Leicester/U.K
Posts: 36
|
Quote:
![]() Hisoft Doesn't seem to have seperate entry points. Ive looked at some of the examples provided in Hisoft but couldn't find anything. Thanks. |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What's involved getting my game launching from WB icon? | jimmy2x2x | Coders. Asm / Hardware | 5 | 18 December 2014 13:18 |
mouse icon pointer problem cd32 toolkit | amigapd | support.Other | 8 | 07 February 2011 09:00 |
Icon Update program - what do you use? | Bloodwych | support.Apps | 9 | 22 September 2007 22:54 |
SoccerKid AGA Whdload Icon Problem | Anubis | project.WHDLoad | 0 | 16 March 2006 15:10 |
Icon's problem | GoKu | project.WHDLoad | 2 | 07 September 2005 10:50 |
|
|