Page 1 of 1

EasyCE Bugs to be aware of!

PostPosted: Jan 31, 2003 @ 3:20am
by brendan

PostPosted: Feb 1, 2003 @ 11:53pm
by Jim
a better method might be to preprocess the targa file to the foramt you want then use them as resources, no buffer needed then or file loading.

cheers
jim.

PostPosted: Feb 2, 2003 @ 12:07am
by brendan

About resources

PostPosted: Feb 2, 2003 @ 8:20am
by golan_trevize_x
Jim,

Just wanted to ask about what you mentioned - using resources. How is it done in eVC++? I once gave it a go a while back, but had a lot of trouble making it work.

eg. Say I have a gzipped file. Currently in my program, I'm using the gzopen command to open that file, which is stored in a directory along with my program on the PocketPC. Now, there is also a gzopenfrommem function which accepts a const long (presumably a pointer to the memory).

So is there a way I can put my gzipped file into a resource and then make it open this way? The LoadResource function returns a HANDLE, but I'm not sure what to do from there.

Thanks for any help!

Nathan

PostPosted: Feb 2, 2003 @ 8:26am
by golan_trevize_x
Actually, I can't seem to find the implementation for gzopenfrommem. Maybe it's been taken out in the WindowsCE port of the zlib library that I'm using.

PostPosted: Feb 3, 2003 @ 1:52am
by golan_trevize_x
Sorry for the triple post here. I have figured out how to read gzip files from a resource loaded into memory. Basically I'm using the slightly lower level function uncompress, which is part of zlib.

For more information about this, there's a thread back in Nov/Dec 2002 you can look at. Just do a search for "zlib" on the forums.

(I had to make my own gzip "format" which begins with two longs, the uncompressed size and the compressed size, followed by the compressed data as a byte stream. I found a DLL implementation of zlib, so was able to create a little program in VB which zips up a file into this simple format.)

PostPosted: Feb 7, 2003 @ 3:40am
by brendan