home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4413 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  3.4 KB

  1. Xref: sparky comp.os.ms-windows.programmer.misc:4413 comp.os.ms-windows.programmer.tools:1793
  2. Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!news.ans.net!cmcl2!panix!rryan
  4. From: rryan@panix.com (Rob Ryan)
  5. Subject: Re: MFC and Borland IDE
  6. Message-ID: <1992Dec22.054710.28775@panix.com>
  7. Date: Tue, 22 Dec 1992 05:47:10 GMT
  8. References: <61589@aurs01.UUCP> <1992Dec16.194955.19597@kth.se> <1992Dec18.035645.3257@microsoft.com> <1992Dec21.211933.14321@emr1.emr.ca>
  9. Organization: Panix, NYC
  10. Lines: 50
  11.  
  12. In <1992Dec21.211933.14321@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
  13.  
  14. >    Did anyone write it using plain C and the Windows API?  It
  15. >    would be nice to have those numbers for comparison also.
  16.  
  17. Having written lots of plain old C and a few largish MFC applications, I
  18. would hazard a guess that the number of lines of code would be much higher
  19. for the C code (than the MFC code, at least, and presumably the OWL code
  20. too) and that the size of the executable wouldn't be that much smaller
  21. than that of MFC.
  22.  
  23. MFC is a "wrapper" for the Windows API, meaning that it gives you easy
  24. access to the API without too much overhead.  Clearly, for users that want a
  25. cross platform (Windows, DOS, Macs, Suns, etc.) class library, a thin
  26. wrapper around a particular platform's API won't do the trick.  But, then
  27. again, given OWL's dependency on Borland-specific DDVTs, it's unlikely to
  28. become a cross platform standard either.  OWL abstracts the programmer
  29. away from the API a little more (arguably making it easier for beginners),
  30. but I've heard OWL programmers suggest that you eventually have to become
  31. familiar with the Windows API anyway, minimizing this advantage in my view.
  32.  
  33. For those C++ programmers who are used to doing C Windows development, MFC
  34. is a great boon (though I still think the compiler stinks...painfully slow
  35. and still a DOS application).  But having written MFC apps, I'm a convert to
  36. Microsoft's class library.  The code seems efficient, small, and safe (i.e.
  37. C++ protection and abstraction at it's best) and the source is a lot cleaner
  38. than my old C stuff (and I prided myself as being a good, stylistically
  39. speaking, C programmer).
  40.  
  41. Now, if Microsoft could just get a development environment that's as nice
  42. as Borland's, I'd be happy.  PWB and CL is for cave men (though some might
  43. argue that "real programmers don't eat quiche or use IDEs").  Personally,
  44. I think Borland's development environment/tools are wonderful.
  45.  
  46. (P.S. I don't mean to start an OWL vs. MFC flame war here.  They're too
  47. different paradigms, of which MFC suits my background and expectations
  48. better.  OWL is good as well, though.  I just wanted to emphasize that
  49. anyone still programming in C should *really* look into class libraries and
  50. C++ development.  It save a lot of time and is well worth the investment if
  51. you're doing any serious development.  And, if overhead is a concern, MFC
  52. presents minimal overhead while offering tremendous OOP advantages.  It
  53. should also be pointed out that although the OWL executables are bigger (and
  54. if linked dynamically, may require those 3 DLLs), I've heard that the actual
  55. run-time footprint (resources used and RAM consumed) isn't that bad.  It's
  56. not like running in Visual Basic or anything.  The executables may be big,
  57. but the code is still pretty efficient.)
  58.  
  59. -- 
  60.  Rob Ryan
  61.     rryan@panix.com
  62.