home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12312 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  5.7 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!newsserver.cs.uwindsor.ca!preney
  2. From: preney@cs.uwindsor.ca (Paul Preney)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Best C++ compilier for Ibm
  5. Message-ID: <1380@newsserver.cs.uwindsor.ca>
  6. Date: 13 Aug 1992 16:39:16 GMT
  7. References: <713678139.F00001@csource.oz.au>
  8. Sender: news@server.uwindsor.ca
  9. Organization: University of Windsor, Ontario, Canada
  10. Lines: 112
  11.  
  12. In article <713678139.F00001@csource.oz.au> Benjamin.Tse@f550.n635.z3.fidonet.org (Benjamin Tse) writes:
  13. >Hi, just about to get into C++ programming and wondered which compiler was the
  14. > best for the Ibm.
  15. >
  16. >I've seen the Borland C++ 3.1 and its Turbo C++ and wondered what the
  17. > difference was. I have little experience in C programming although I have been
  18. > using Pascal and BASIC (when desperate). I need a starting point for using C
  19. > in *both* Dos and Windows - any suggestions ?
  20. >
  21. >Also, what's this Application Frameworks thing that can be bought with Borland
  22. > C++ ?
  23. >
  24. >Info sought,
  25. >Benjamin
  26. >
  27. > * Origin: Empire BBS +61(3)592-5662 (3 lines) (3:635/550)
  28.  
  29. I have been programming with Borland C++ (Professional w/Application)
  30. Frameworks ever since Borland released Turbo C++ Professional.
  31. Prior to that I simply used Microsoft's QuickC compiler.
  32.  
  33. Borland C++ (v3.0+) is an optimizing compiler which features both
  34. command-line compiling and compiling in an Integrated Debugging Environment
  35. (IDE). This, of course, is available under DOS. In Windows, the DOS version
  36. is available running in a DOS Shell window OR you can use the compiler
  37. under Windows and Turbo Debugger. The compiler under Windows is called
  38. Turbo C++ and is not a full implementation of Borland's DOS counterpart.
  39. In Borland C++ v3.1, however, the Windows compiler is identical (with small
  40. differences because of running under Windows) to the DOS environment.
  41. There is also an elaborate Resource Workshop which allows one to design
  42. menus, dialog boxes, accelerators, string tables, etc. in Windows to be
  43. linked into your Windows program. Also, v3.1 of the compiler supports 32 bit
  44. compiling and the execution speed increase will be quite noticeable in your
  45. programs.
  46.  
  47. Basically, in Borland C++ w/Application Frameworks comes with the following:
  48.     DOS IDE (which can compile for Windows as well)
  49.     Turbo Debugger
  50.     Turbo Profiler
  51.     Turbo Assembler
  52.     Windows Compiler
  53.     Turbo Debugger for Windows
  54.     Turbo Profiler for Windows
  55.     Resource Workshop
  56.  
  57.     and dozens of both DOS and Windows utilities too numerous to mention.
  58.  
  59.     plus
  60.         Turbo Vision (for DOS)
  61.         ObjectWindows (for Windows)
  62.         and the run-time source library which is in C, Assembler,
  63.         and C++.        
  64.  
  65. So, what are TurboVision and ObjectWindows?
  66.  
  67. Well, if you've seen the DOS IDE for Borland you've seen a TurboVision
  68. application. It is an elaborate DOS event-driven window manager supporting
  69. just about everything one would want on the text screen.
  70.  
  71. Likewise, for ObjectWindows, it is another elaborate window manager designed
  72. for Windows to cut the @#@$%@! (my apologies) out of Windows programming.
  73. First of all, ObjectWindows provides default handling of all control objects
  74. and window objects. This means that if you need a scrollbar you do not need
  75. to define from scratch how you application will handle it. All you have to
  76. do is create the scrollbar (there are several ways of doing this depending on
  77. need) and pass it an ID value which the bar can be identified with. That is
  78. all you need to do. If you need to set the maximum and minimum values for the
  79. scollbar well, you call TScrollBar's member functions which do precisely that.
  80. If you want to make your own type of scrollbar then all you have to do
  81. is override TScrollBar's default functions. For windows, there are features
  82. allowing windows to automatically control scrolling themselves and the like.
  83. You really have to see it in action to fully understand and appreciate the
  84. depth and thought that went into the design of ObjectWindows & TurboVision.
  85.  
  86. (NOTE: TurboVision is ObjectWindows in DOS with some minor diferences in
  87. message handling and window/control creation.)
  88.  
  89. Well, I hope I did not talk over your head. The Borland C++ package is an
  90. elaborate package and is probably the reason why they received PC Magazine's
  91. editor's choice award for it. If I were you, I would buy an excellent book
  92. on C++ as Borland's documentation is a little too much too soon to learn
  93. from. You'll also find the example programs excellent in assistance once
  94. you get on the road to programming. Also, personally, if you are going to
  95. program in Windows, I would do it in ObjectWindows along with the
  96. Resource Workshop, it is far more simpler and quicker to develop the
  97. application then messing around with 60 zillion pointers to create and
  98. load your windows, controls and dialog boxes. You program also becomes MUCH
  99. MORE modularized -stay away from too many global variables.
  100.  
  101. Since, as you stated, you are used to Pascal and BASIC and do have some C
  102. programming experience, you'll probably find C++ an interesting "fellow" to
  103. learn. You'll find that at first you'll be writing C code in C++ with little
  104. C++ tidbits for experimentation. Familiarize yourself with Object oriented
  105. programming: What is it? What are the concepts? etc. And then, with 
  106. some hands-on experience you'll find it easier and easier to program in C++.
  107. (NOTE: C++ is strongly typed and most compilers with complain about passing
  108. an unsigned int to a function that accepts a signed int, and at first this
  109. may be annoying.)
  110.  
  111. Now as far as Microsoft's C/C++ compiler well I heard that it was not as
  112. in-depth as Borland's C/C++ stuff. As for speed, I understand that they
  113. are pretty close BUT I read somewhere that Borland C/C++ can compile C++
  114. code up to 4 times faster than Microsoft's.
  115.  
  116. I hope I was of assistance.
  117.  
  118.  
  119. Paul Preney
  120. University of Windsor, Ontario Canada
  121. preney@server.uwindsor.ca
  122.  
  123.  
  124.