home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19298 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.2 KB

  1. Path: sparky!uunet!vtserf!csugrad!cfury
  2. From: cfury@csugrad.cs.vt.edu (Chris Fury)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ** FINALLY - AN _GREAT_ AMIGA PROGRAMMING LANUAGE
  5. Message-ID: <C1KpH5.x0@csugrad.cs.vt.edu>
  6. Date: 28 Jan 93 16:51:05 GMT
  7. References: <thecure.727159005@munagin> <alien.02q1@acheron.amigans.gen.nz> <thecure.728052928@munagin>
  8. Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
  9. Lines: 51
  10.  
  11. thecure@mullian.ee.mu.OZ.AU (matthew aardvarkious) writes:
  12.  
  13. >alien@acheron.amigans.gen.nz (Ross Smith) writes:
  14.  
  15. >>In article <thecure.727159005@munagin> thecure@mullian.ee.mu.OZ.AU (matthew aardvarkious) writes:
  16. >>>It also caters specifically to common amiga programming, like this.
  17. >>>
  18. >>>w:=OpenW(20,11,400,100,$200,$F,'My first window in E!',NIL,1,NIL)
  19.  
  20. >>Huh? In what way is this an improvement on the corresponding C code?
  21.  
  22. >Get it , try it. That example was showing how it caters to "common" amiga
  23. >coding, not the easier nicer E stuff. (With C you declare a pointer to
  24. >the structure, pass the pointer to the function, and then call it. With 
  25. >E , it's all in the one command.)
  26.  
  27.  
  28. I can see somebody here hasn't programmed under AmigaDOS 2.0.
  29.  
  30. Opening a window under 2.0 is simple as:
  31.  
  32. Window = OpenWindowTags(NULL,
  33.     WA_InnerWidth, 320,   WA_InnerHeight, 200,
  34.     WA_CloseGadget, TRUE, WA_IDCMP, IDCMP_CLOSEWINDOW,
  35.     TAG_DONE);
  36.  
  37. That little snippet of code will open a 320, 200 window with additional room
  38. for the Title bar and borders and a close gadget, on the default public screen
  39. (workbench, most of the time)
  40.  
  41. Simple as that!
  42.  
  43.  
  44. >>Most (all?) Amiga C compilers now include automatic library opening and
  45. >>closing. And what happens when you need libraries other than those four?
  46.  
  47.  
  48. >You can use _anything_ that C compilers use. It does automatic library etc
  49. >and all the includes are included. :)
  50.  
  51. How so?  I guess these aren't the standard includes, then.  A special version
  52. for E?  And are these the 2.0 includes?  the 3.0 includes?
  53.  
  54. >--
  55. >If someone cried, you'd sympathise
  56. >It's just a boy or a girl
  57. >It's not the end of the world
  58.  
  59.  
  60. Christopher B. Fury        | "...reality was once a primative method of crowd  
  61. cfury@csugrad.cs.vt.edu    |  control that got out of hand" - Jane Wagner
  62.