delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/14/15:21:25

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Some qusestions
Date: Wed, 14 Jan 1998 19:02:28 +0000
Organization: None
Distribution: world
Message-ID: <$FjcVDAEvQv0Ew2V@talula.demon.co.uk>
References: <34BCDB23 DOT 6A22 AT wxs DOT nl>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nils van den Heuvel writes:
>Can i put a .jpg file in an allegro datafile and load it with
>load_jpeg()???? (I've got a library that works with allegro that does
>this)... Because when i did this it couldn't load the .jpg file...

If the JPEG library uses the Allegro PACKFILE routines, you can use a
name of the form "datafilename.dat#objectname" to read directly from it.
But I suspect it will be using the normal C library file functions, in
which case it cannot read from a datafile object.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019