Click to See Complete Forum and Search --> : Is there resource size limit?
Alexander
September 5th, 1999, 05:04 AM
I added a lot of bitmaps to my project throw
resource editor. Now my applications' size is
about 8MB. In Win95 I can't load my cursor resource. When I delete part of my pictures from
the resource everything goes normally.
Thanks in advance,
Alex
September 22nd, 1999, 08:33 AM
I have experienced a similar problem. There would appear to be some sort of
limit to the total number of different resources you have in a project.
I have an NT application with around 800 bitmaps(amongst other things), which
works fine on WinNT, but refuses to run on Win98. Delete any one bitmap or any
other resource(e.g. dialog/accelerator/menu) and it works without a problem.
I have yet to find out exactly what is going on or what to do about it.
Out of interest, how many different bitmaps do you have?
Alexander
September 22nd, 1999, 11:36 AM
I have thirty different bitmaps in my project resource.
My project also goes normally under NT.
It's like floating bug. I changed something in my project resource
and everything became allright. I don't remember exactly what I changed.
Maybe I removed several bitmaps and then added them again.
Alex
Paul McKenzie
September 22nd, 1999, 01:07 PM
Assuming that the resources are linked in your app, have you ever thought about creating a "resource-only" DLL that just contains the bitmaps? At runtime you just need to call LoadLibrary() and FindResource()/LoadResource() to load the desired bitmap(s). This way your final EXE is much smaller and will probably run on Win 95. Also, you don't have to re-link your app if you change one of the bitmap resources.
Regards,
Paul McKenzie
Paul McKenzie
September 22nd, 1999, 01:47 PM
See my response to "Anonymous". It basically advises to build a resource-only DLL of the bitmaps instead of linking the resources with your application (making the app much larger than necessary).
Regards,
Paul McKenzie
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.