home *** CD-ROM | disk | FTP | other *** search
- 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
- Date: Fri, 28 Aug 92 09:28:30 +0200
- From: Martin_Schloeter@eurologic.fido.de (Martin Schloeter)
- Subject: Re: Windows == OS
- Message-ID: <197a1eea@p3.f67.n245.z2.fidonet.org>
- Newsgroups: comp.os.ms-windows.misc
- X-Comment-To: tguez@jade.tufts.edu (Name)
- Organization: Die ersten 100.000 Jahre...
- Lines: 20
-
- N > > As I said, Windows 3.1 lets you do this. If having malloc
- N > > makes it an OS, why not just do this:
- N > > #define malloc(size) GlobalLock(GlobalAlloc(GMEM_NODISCARD,(size)))
- N > >
- N > > Ta,da! I turned Windows into an OS with just one #define!
- N > It's not the five letter combination m-a-l-l-o-c. Malloc supposedly
- N > get's memory from DOS. Now, if ms-windows was an operating
- N > system,i.e., taking over the system as an operating system and
- N > releaving dos from it's duties, then it would of been able to juggle
- N > with malloc memory blocks too.
- Sigh...
- OK Simply take the MSC Compiler and write a Windows app which use malloc! This
- will work! malloc well be automatically translated to the sequence "LocalAlloc
- - LocalLock".
- If you write a DOS app with MSC malloc will be translated to "intr( XXX) -
- blabla (additional stuff)".
- malloc-call on whatever OS will ALLWAYS be translated to underlaying memory
- managemant calls. There is no conceptional difference!
-
- Martin
-