Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


about resource file

This topic is 6594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There are some questions dangled in my brain for a long time. I hope someone can give my some suggestion. 1 I use the resource file system provided by VC6. I have hundreds of bmp to be stored. The thing annoying is when i change a little code patch in source, i must wait a long time for linking a new exe file. i wonder if i can store the bmps in several dll file, and use it as easy as them in exe file? If it is feasible, how can i get there? any additional steps to get them from dll? 2 Here also some text file describe some information about each bmp, how can i comprise it into resource? It seems VC doesn''t support such a resource style (I dont think a good idea to turn it into strings). any good suggestion? If there does have a way to bind them with other resources, how can i read it as same as a text file on disk?

Share this post

Link to post
Share on other sites
For the first question, I''m not sure about storing resources in DLLs, but if you have hundreds of bitmaps, you could always just save some disk space and use a compressed image format instead, like PNG, and load from external files instead of resources. A PNG loader isn''t hard to write if you use libpng, which in turn uses zlib for the codec.

If you have file information that you want to store in resources, but don''t want to use strings, then you can always make up a custom resource type. It''s pretty easy to do; the process is described in my Game Programming Genesis #2 that''s on the front page of this site right now.

 Aeon Software

Next thing you know, they''ll take my thoughts away.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!