Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!bloom-beacon!mcgill-vision!quiche!chryses From: chryses@quiche.cs.mcgill.ca (Phong CO) Newsgroups: comp.windows.ms Subject: Generic in Large Model Message-ID: <1464@quiche.cs.mcgill.ca> Date: 25 Sep 89 14:36:14 GMT Reply-To: chryses@quiche.cs.mcgill.ca (Phong CO) Organization: SOCS, McGill University, Montreal, Canada Lines: 26 Hi, I am new to the net and have a couple of questions to ask: 1) I have Windows/286 2.11, and the Software Developement Kit. I tried to compile the Generic program under the large module. I changed the makefile by adding the -AL switch to the MSC 5.1, and changed the library from slibw to llibw. I also added a menu to the resource file. The pro- gram compiles and runs fine, except that the menu does not show up. It does show up if I return to the small model. Is there something else I should modify or include somewhere? 2) I want to write a program that will, at startup, allocate a (very) large block of memory, say about 4MB. I intend to use this as a heap, and have my own heap management functions. The block will be locked as soon as it is allocated, and unlocked when the program terminates. The fact that I won't be able to run anything else in the meantime is not a problem. The problem is that GlobalAlloc fails with that amount. Microsoft Tech Support claims that data size depends on extended memory size, since data segments are not swapped. I currently have 2MB of extended memory on my AT, most of which has been given to SMARTdrv. Is there a way to manage this block of memory? E-mail responses will be fine. Thank you very much. I'll work on my .signature someday. Phong Co chryses@quiche.mcgill.ca