Re: Resource Files (Was: Re: More points for the technical discussion)

Krasimir Angelov <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
--- Wolfgang Thaller <[email protected]> wrote:
> On the other hand, it would be great to be able to
> store bitmaps and 
> other data in the .EXE file's resources on Windows,
> and in the 
> appropriate application wrapper on Mac OS, rather
> than cluttering the 
> application directory with many files.

I was recently planed to do this with Port. The Port
library has readBitmap function which takes the
FilePath and returns the Bitmap data type. My idea is
to use paths like "res://MyBitmap.bmp" for bitmaps
which are contained in the resource section of the
.EXE file. Under Linux/Unix the "res://" prefix can be
mapped to "/usr/shared/AppName/" or some similar
predefined path. 

Krasimir

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.