Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!munnari.oz.au!bruce!merlin!paulg From: paulg@bhpmrl.oz.au (Paul Gallagher) Newsgroups: comp.lang.pascal Subject: Re: Pictures in exe file Keywords: TP5.0 Message-ID: <1991Apr17.120628.7990@bhpmrl.oz.au> Date: 17 Apr 91 12:06:28 GMT References: <1991Apr7.145358.25926@noose.ecn.purdue.edu> Sender: usenet@bhpmrl.oz.au (USEnet nntp account) Organization: BHP Research - Melbourne Laboratories, AUSTRALIA Lines: 33 Nothing like having an impressive sign-on screen flash up on the screen almost immediatley is there? (NB: I'm using Turbo Pascal) One way to achieve this is to use BINOBJ, BGIOBJ or similar to convert an image file into a *.OBJ, then link it into your program: procedure pic1; external; {$L pic1.obj} *** code was done from memory - hope its correct Just make sure the public name matches the declaration. You can then address the picture data as an offset to @pic1. The only worry you may have is that when dealing with EGA/VGA screens your EXE will grow tremendously - resolution dependant of course. If you're just talking text screens though, at 4k a pop you can afford to link in enough to keep the entire application flying along. btw, if you're using graphic screens, the other decision you need to make is whether to link a compressed (PCX,GIF etc) or uncompressed image. The trade-off is basically EXE size v. speed - as usual. Regards, Paul Gallagher /\/\ Paul Gallagher, PC Support Officer, / / /\ Computer Systems Group, / / / \ BHP Melbourne Research Laboratories / / / /\ \ 245 Wellington Rd Mulgrave Vic 3170 AUSTRALIA \ \/ / / / Phone : +61-3-560-7066, Fax : +61-3-561-6709 \ / / / ACSnet : paulg@bhpmrl.OZ.AU \/\/\/