home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / misc / 2515 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.5 KB

  1. Path: sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!eurologic.fido.de!Martin_Schloeter
  2. Date: Fri, 28 Aug 92 09:28:30 +0200
  3. From: Martin_Schloeter@eurologic.fido.de  (Martin Schloeter)
  4. Subject: Re: Windows == OS
  5. Message-ID: <197a1eea@p3.f67.n245.z2.fidonet.org>
  6. Newsgroups: comp.os.ms-windows.misc
  7. X-Comment-To: tguez@jade.tufts.edu (Name)
  8. Organization: Die ersten 100.000 Jahre... 
  9. Lines: 20
  10.  
  11. N > >        As I said, Windows 3.1 lets you do this.  If having malloc
  12. N > >   makes it an OS, why not just do this:
  13. N > >   #define malloc(size) GlobalLock(GlobalAlloc(GMEM_NODISCARD,(size)))
  14. N > >
  15. N > >        Ta,da!  I turned Windows into an OS with just one #define!
  16. N > It's not the five letter combination m-a-l-l-o-c.  Malloc supposedly
  17. N > get's memory from DOS.  Now, if ms-windows was an operating
  18. N > system,i.e., taking over the system as an operating system and
  19. N > releaving dos from it's duties, then it would of been able to juggle
  20. N > with malloc memory blocks too.
  21. Sigh...
  22. OK Simply take the MSC Compiler and write a Windows app which use malloc! This 
  23. will work! malloc well be automatically translated to the sequence "LocalAlloc 
  24. - LocalLock".
  25. If you write a DOS app with MSC malloc will be translated to "intr( XXX) - 
  26. blabla (additional stuff)".
  27. malloc-call on whatever OS will ALLWAYS be translated to underlaying memory 
  28. managemant calls. There is no conceptional difference!
  29.  
  30. Martin 
  31.