English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 17 July 2020, 10:29   #1
mbergmann-sh
Registered User
 
mbergmann-sh's Avatar
 
Join Date: Nov 2019
Location: Rendsburg
Posts: 3
Question GadToolsBox3: How to write a main C file for generated C output?

Anyone here who is familiar with GadToolsBox3 who can provide me with an working example on how to write a main file for the produced C code output, please?

Especially: How to open the app, parse IDCMP, and so on...
My C generator prefs are: Template, Screen, GUI functions and Localize...

Thanks for any hints!

(Sorry for cross posting this! I guess this section is a better place to ask than the one I've choosen before.)
mbergmann-sh is offline  
Old 18 July 2020, 04:49   #2
jlin_au
Registered User
 
Join Date: Nov 2016
Location: Fadden ACT Australia
Posts: 128
It should be in the help available via the GadToolsBox3/Help.info file which should link to the GadToolsBox3/Help/English/c.generator.guide and GadToolsBox3/Help/English/GadToolsBox.guide

See:
https://aminet.net/package/dev/gui/GadToolsBox3 - the version 3.0 executables
https://aminet.net/package/dev/gui/GadToolsBox3a - the keyfile, compiled version 3.0, 3.0 to 3.0a update patches, and the sources
jlin_au is offline  
Old 18 July 2020, 07:49   #3
mbergmann-sh
Registered User
 
mbergmann-sh's Avatar
 
Join Date: Nov 2019
Location: Rendsburg
Posts: 3
Nope, the guide just lists the different variables and functions that gtb3 produces. As far a I read those, some grip in to other, some do stand alone. My bet would be
Code:
if(InitApplication())
{
  error = OpenWindow_WinMYWINDOW();
  while (running)
  {
     running = HandleIDCMP_WinMYWINDOW;
   }
   FreeApplication();
}
else puts("App not initialized!");
within the main() function. Anyhow, this won't work...
mbergmann-sh is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A somewhat geeky trip through CyberPunks main source code file (circa 1993) in Devpac Adrian Cummings Nostalgia & memories 43 12 January 2020 10:57
Rogue characters on file write pmc Coders. C/C++ 4 05 October 2012 17:36
How to redirect the output of IconX to a file tygre support.Apps 8 10 July 2011 05:29
Civ2 mac main file derringer request.Other 1 18 February 2008 21:55

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:57.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07309 seconds with 13 queries