|
-
September 5th, 1999, 05:04 AM
#1
Is there resource size limit?
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
#2
Re: Is there resource size limit?
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?
-
September 22nd, 1999, 11:36 AM
#3
Re: Is there resource size limit?
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
-
September 22nd, 1999, 01:07 PM
#4
Re: Is there resource size limit?
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
-
September 22nd, 1999, 01:47 PM
#5
Re: Is there resource size limit?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|