home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15772 < prev    next >
Encoding:
Text File  |  1992-11-13  |  2.2 KB  |  66 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!willw
  3. From: willw@extro.ucc.su.OZ.AU (William Waring)
  4. Subject: Re: GadToolsBox Compiling Questions.
  5. Message-ID: <1992Nov13.063031.21798@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: /etc/organization
  9. References: <1dqgtqINNa54@usenet.INS.CWRU.Edu>
  10. Date: Fri, 13 Nov 1992 06:30:31 GMT
  11. Lines: 53
  12.  
  13. In article <1dqgtqINNa54@usenet.INS.CWRU.Edu> as170@cleveland.Freenet.Edu (Ronn F. Black) writes:
  14. >
  15. >I realize that this may seem to be a rather stupid question but I need a 
  16. >little clarification.
  17. >
  18. >I have tried a couple of times to use GadToolsBox 37.111 (18.4.92)
  19. >from Jaba Development and I am a little bit confused with getting the stuff
  20. >to compile.
  21. >
  22. >The documentation doesn't directly state this but, since there is no main()
  23. >in the sources generated I assume you must create a main() in another 
  24. >module or by adding to the sources generated.  
  25. >
  26. >Is this the case, and is there a recommended way of doing this?  I think my 
  27. >preference is a seperate file so that If I redesign the interface I can 
  28. >regenerate from GadToolsbox without touching any of my other code.
  29.  
  30. Well yes, but you are using the wrong version. Get GadToolsBox V1.4
  31. (amiga.physik.unzch.ch), which creates code that is much easier to
  32. re-generate and modify without going through hassles. It has it's
  33. disadvantages though. I advise you check it out.
  34.  
  35. >Based on the above statement, I attempted to generate a simple test program
  36. >with the following main() added to the generated source.
  37. >
  38. >
  39. >main(){
  40. >
  41. >  SetupScreen();
  42. >
  43. >  OpenTestPgmWindow();
  44. >
  45. >  TestPgmRender();                                                   
  46. >  
  47. >  delay(); /* Delay to see results */
  48. >
  49. >  CloseTestPgmWindow();
  50. >
  51. >  CloseDownScreen();
  52. >
  53. >}
  54. >
  55. >is the above even close to what I need to do or am I barking up the wrong 
  56. >tree.
  57.  
  58. Yes very close, but how about a gadtools.library and maybe an
  59. intuition.library! I bet it crashes. I must say that Jan Van den Baard
  60. (Sorry if I spelt it wrong) should be shot for not mentioning the fact
  61. that you need to open libraries in the code. If that doesn't fix it, then
  62. please let me know.
  63.  
  64.  
  65.  
  66.