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

  1. Xref: sparky comp.os.ms-windows.programmer.misc:4436 comp.os.ms-windows.programmer.tools:1809
  2. Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
  3. Path: sparky!uunet!psinntp!adcmail!jasons
  4. From: jasons@atlastele.com (Jason Smith)
  5. Subject: Re: MFC and Borland IDE
  6. Message-ID: <1992Dec22.221010.15799@atlastele.com>
  7. Organization: Atlas Telecom Inc.
  8. References: <1992Dec16.194955.19597@kth.se> <1992Dec18.035645.3257@microsoft.com> <1992Dec21.211933.14321@emr1.emr.ca>
  9. Date: Tue, 22 Dec 1992 22:10:10 GMT
  10. Lines: 81
  11.  
  12. = >The October issue of Dr. Dobbs has a review of several application
  13. = >frameworks for Windows, most notable OWL and Microsoft's MFC.
  14. = >
  15. = >The task was for each vendor to write a program based on a third
  16. = >party specification.  In this case we were asked to write a hand-
  17. = >writing browser.  This was a non-trivial application (imho).
  18. = >
  19. = >The end result was (quoting the stats from the magazine):
  20. = >
  21. = >                   OWL      MFC
  22. = >Lines of Code     3398      934
  23. = >EXE size(bytes) 56,848   46,536
  24. = >
  25.  
  26. Keep in mind that the MFC version's main window  was a dialog box 
  27. (i.e. MUCH of the logic is actually taken care of w/in Windows) 
  28. whereas the Borland version created an "unadorned" window and added 
  29. UI logic to that. 
  30.  
  31. = >The OWL executable also requires 3 DLLs totalling 312,640 bytes.  MFC
  32. = >is a stand-alone EXE.
  33.  
  34. The MFC version required at least 1 DLL - commdlg.dll. That is, if it 
  35. were to run on a WIN30 platform...it's already there in WIN31.  If any
  36. one really wants to pick nits (What?! Nit-picking on the net?!) ALL Windows
  37. apps use additional DLL's - GDI.EXE, KERNEL.EXE, USER.EXE, some even more,
  38. in the form of Font files, *.drv's ... but who's counting ...
  39.  
  40. The impact of additional DLLs on calculated code size can be considered 
  41. moot, or at the very least, be reduced by the fact that apps written 
  42. using XXX.DLL can actually share code with other apps (and, alas,
  43. share bugs... ).  Such is the case with all those apps using (and sharing)
  44. commdlg.dll, olecli.dll, olesrv.dll, ddeml.dll, etc.
  45.  
  46. One obvious benefit to this approach, is the provider of XXX.DLL can 
  47. improve the performance of the DLL's routines, and the next time the DLL is
  48. distributed with an app, ALL other apps that use that DLL benefit, 
  49. *provided* the DLL creator has not invalidated the original API in the 
  50. update, and the DLL is placed in a commonly accepted and accessible 
  51. place for such things (I'm all for a DLL directory in the Windows 
  52. heirarchy...).  Of course, the above caveat could potentially make things
  53. more difficult for the DLL provider (what API has NEVER had to support
  54. obsolete functions...?).
  55.  
  56. Now that everyone is convinced that I am an apostle of OWL, it just ain't
  57. so.  I believe that since the DDVT scheme is only supported by Borland
  58. whereas MFC uses constructs that are *for the most part* quite portable
  59. (with the exception of __segment() 'keywords' and the addressing scheme in
  60. the medium model - all things easily avoided), MFC is a better solution 
  61. for MY NEEDS (OK, OK, price played a factor...after getting BCC *and* MFC, 
  62. there weren't a whole lot of cookies left in the jar...).  
  63.  
  64. Currently, Borland, Intl. is the only kid on the block that can spell
  65. "DDVT".  IMO, tying yourself to one vendor as intimately as DDVT's tie 
  66. one to Borland is asking for an Adult-Sized-Bangaroo of a headache.  
  67.  
  68. Case in point - how many of us remember Microsoft's song of praise 
  69. about OS/2, about it being the wave of the future and the transition of
  70. Windows to OS/2 will be almost painless?  How much of that code
  71. does MS promise to support in the future? 
  72.  
  73. The Borland-only nature of OWL could change, either through Borland's 
  74. ability to sell the DDVT idea to other compiler writers (yea, sell 
  75. technology to the competition ... that's the "barbarian" thing to do ... ),
  76. change their OWL code to not use the construct (and break all that other
  77. stuff??!!), or, finally now that Symantec owns the Whitewater Group, 
  78. it could be built into Zortech's compiler ... ("Now where DID I put that
  79. non-disclosure statement...") (for those who don't know, the Whitewater
  80. group worked with Borland in their development of OWL). 
  81.  
  82. I personally get a warm and fuzzy thinking of Borland making it official and
  83. supporting MFC ... *or* how about a new *portable* UI lib that can handle
  84. DOS and WINDOWS...
  85.  
  86. Excuse me, I need to go take a cold shower...
  87.  
  88.  
  89. -- 
  90. Jason D. Smith      |
  91. jasons@atlastele.com    |    I'm not young enough to know everything.
  92.      1x1            | 
  93.