home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7093 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  3.8 KB

  1. Path: sparky!uunet!torolab6.VNET.IBM.COM
  2. From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
  3. Message-ID: <19921217.075601.379@almaden.ibm.com>
  4. Date: Thu, 17 Dec 92 10:08:05 EST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: REPOST: novice question
  7. Disclaimer: This posting represents the poster's views, not those of IBM
  8. News-Software: UReply 3.0
  9. References: <1992Dec17.132444.20891@ugle.unit.no>
  10. Lines: 64
  11.  
  12. In <1992Dec17.132444.20891@ugle.unit.no> Oddgeir Kvien writes:
  13. >1. I have seen that a lot of people is recomending Petzold`s book on
  14. >   programming OS/2 (I have ordered it, but I don`t know if my local dealer
  15. >   can get it). What book is recomended if Petzold`s book is imposible to get.
  16. >   (What is the 2`nd best book on programming OS/2?)
  17. >
  18. I personally don't like Petzold's book.  It always put me to sleep.  I
  19. far prefer the "OS/2 Presentation Manager Programming Primer", by Dror
  20. and Lafore (Osborne McGraw-Hill).  While it was written for OS/2 1.2, I
  21. covers PM programming very very, IMHO.  I have read almost all of it and
  22. have typed in most of the exercises.  It has taught me all I wanted to
  23. know and more. (You can get the diskette, but I found typing in the
  24. code to be very educational).
  25.   A new book is available for OS/2 2.0. You can order it from IBM if you
  26. cannot find it in the bookstore).  It is:
  27.  
  28.  LEARNING TO PROGRAM OS/2 2.0 PRESENTATION MANAGER BY EXAMPLE: Putting
  29.          the Pieces Together
  30.  By Stephen Knight, IBM Corportaion
  31.  0-442-01292-6
  32.  
  33. In my opinion only, I prefer the Dror and Lafore book.  The Knight book
  34. is a little too terse - too much information in each example.  However,
  35. together, these two books (plus the PM API reference which come on-line
  36. with the Toolkit) are a fantastic start to PM programming in OS/2 2.0.
  37.  
  38. >2. Are there someone who got some simple OS/2 programs which shows the basic
  39. >   of how to program OS/2 (class registering, message que creating and so one).
  40.  
  41. The IBM Workframe/2 comes with 2 examples of PM programs.  One, called
  42. PMLINES shows a simple PM window, with simple menu pull-downs,
  43. dialog boxes, multiple threads, and graphics using basic GPI calls.
  44. The second PM sample is called MAHJONGG, a solitaire game.  It is more
  45. complicated than PMLINES, but offers much more information.  On-line
  46. Help, multiple use of bitmaps, accelerator keys for menu items, animation
  47. (a congratulation screen display), saving/loading options from OS2INI
  48. file, use of fonts, and more.  And it is well documented, has all the
  49. appropriate error checking (which are frequently left out of text book
  50. examples for simplicity).
  51.  
  52. >   A program which shows simple line drawing would alsoe bee nice. If so could
  53. >   they email them to me (I got a lot of space where I could save my mail).
  54. Well they come with the Workframe/2 product, but you are going to need
  55. a C compiler, the OS/2 Toolkit anyway.
  56.  
  57.   The IBM C Developer's WorkSet/2 includes the following programs
  58.   (one license each):
  59.   o   IBM Developer's Toolkit for OS/2 (3.5" or 5.25")
  60.   o   IBM WorkFrame/2 Version 1.0 (3.5" or 5.25")
  61.   o   IBM C Set/2 Version 1.0 (3.5" or 5.25")
  62.  
  63. >+-----------------------------------------------------------------------+
  64. >| Oddgeir Kvien, Norwegian Institute of Technology                      |
  65. Cheers,
  66. Martin Lansche, IBM Lab, Toronto Canada.
  67.   ________________________________________________________________________
  68.    Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
  69.    numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
  70.    ----------------------------------------------------------------------
  71.    The father made the world for elves and mortals and he gave it into
  72.    the hands of the Lords in the West.  They are blessed, holy and loved,
  73.    except the black one.  He has fallen.  (J.R.R. Tolkien).
  74.   ________________________________________________________________________
  75.  
  76.