CompuServe Messages

#Memory Allocation

    13-Sep-94 15:20:55
Sb: #123522-#Memory Allocation
Fm: Ken Mascaro, Xing T 70703,3505
To: Jonas Ruikis [ADESK] 73172,1351
OK will do. For the time being I have replaced all of my library calls to GlobalAlloc, GlobalFree, GlobalLock, GlobalUnlock with my own MemoryAlloc, (etc) functions. then in my functions I used conditional defines to adapt the method from Win to DOS functions as in: #ifdef DPMI return (HGLOBAL)malloc (….. #else return (HGLOBAL)GlobalAlloc (….. #endif This way it is easy to conduct the experiment by switching between DOS and WIN type memory functions. I have a similar approach to FILE IO functions, and will now convert my MEMORY IO group as well.