This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Memory file-descriptor


Memory file-descriptor

Postby Dave Johnston » Aug 24, 2003 @ 11:14am

Time for a classic usenet question...

My aim: to use my existing f-based method (fopen, fread, fgets, fclose) to read data from a Resource as if it were a file.

Ideally: I'd get a file descriptor/handle that I could pass to fdopen/gzdopen. That way I could read from compressed files and Resources and save a bit of space.

Any ideas or suggestions? I could just create a new method that performs the same loading procedure but from the uncompressed data (using LoadResource to get into memory, etc.) - but ideally I'd like everything to be compressed.

Chances are I will end up having two methods (one for compressed data in a file, one for uncompressed data in a Resource) - but hey, it's worth a try :)
User avatar
Dave Johnston
pm Insider
 
Posts: 356
Joined: Mar 31, 2002 @ 6:14pm
Location: UK


Return to Windows Mobile


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum