Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!ginosko!usc!trwind!venice!press From: press@venice.SEDD.TRW.COM (Barry Press) Newsgroups: comp.windows.ms Subject: Re: Pointers to functions Message-ID: <60@venice.SEDD.TRW.COM> Date: 9 Oct 89 22:07:50 GMT References: <581@vall.dsv.su.se> Reply-To: press@venice.sedd.trw.com (Barry Press) Organization: TRW Systems Engineering & Development Division, Redondo Beach, CA Lines: 16 You really raise two separate questions (as I understood the question) -- one related to multiple data segments, and one related to exporting fns. You can avoid exporting functions (ANY functions) altogether by using a program called FIXDS, which is available in the GEnie service, MS roundtable, library 9 (I think). What it does is change the prologue to get the SS/DS value from SS, so exports to fixup how DS is known are no longer needed. It only works in apps, however, since DLL's run DS != SS. Multiple data segments are another story altogether, usually found in conjunction with large model. As discussed here lately, the best answer is don't do it -- allocate the memory you need dynamically from GlobalAlloc instead. If you must do it, all such data segments but the default should be fixed. It's been pointed out that the large commercial apps do not need this.