[comp.sys.ibm.pc] Microsoft Presentation Graphics in an Overlay

shap@bunker.UUCP (Joseph D. Shapiro) (09/05/89)

Hello networld.

I am having difficulty with the microsoft quick C presentation graphics
library when I try to use it in conjunction with overlays linked into a
regular MSC 5.1 program.  I have already posted my question to
Microsoft Online, but while I am waiting for that response, I would
like to see if anyone else has come up against the same thing.

Basically, it all works fine in small programs, and in larger programs
IF the library is allowed to reside in the default code segment.

But I have a real large program here, Large model, with many overlays,
and graphics is only used by one of the overlays.  I hate to have the
graphics code enlarging the whole program for the sake of one overlay.
What I have tried to do is extract the .OBJ files from the library with
LIB.EXE, and then link them in "by hand" in an overlay.  The result is
that the program will not even initialize.  

I am aware that certain modules in MS librarys dump pointers into an
initialization block for the start up routine, but I can't imagine why
_presentation_ graphics would do this.  I have not yet moved the
GRAPHICS.LIB out of the root segment, and I believe that this lower
level library should take care of all start up initialization.

I also know that in order to use the QC library, you must use it
exclusively, and also use the QC include files.

So...  I hope I have worded this clearly, and I hope somebody has done
this already, but maybe thats a long shot.

Thanks in Advance, email or post, etc...  --
-- 
__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__
Joe Shapiro					"My other car is a turbo...
ISC-Bunker Ramo     				 ...too."
{decvax,yale,philabs,oliveb}!bunker!shap