CompuServe Messages

#Memory Allocation

    13-Sep-94 20:14:26
Sb: #123599-#Memory Allocation
Fm: Gus Grubba 70673,1605
To: Ken Mascaro, Xing T 70703,3505
I have never tried doing what you're doing so I don't know if those functions are supported or not. You didn't explain you had a bunch of code already using those which now makes perfect sense. If you were just starting to write code from scratch, it would not make much sense to be worring about the PharLap library. Instead of doing your #ifdef/#else/#endif, you could simple #undef GlobalAlloc and #define GlobalAlloc to malloc in one of you header files. This will allow you to use the source unchanged. It's a pain to keep track of every place you invoke a certain function so it's easier to just redefine it.