CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    29

    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


  2. #2
    Guest

    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?


  3. #3
    Join Date
    Apr 1999
    Posts
    29

    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



  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    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


  5. #5
    Join Date
    Apr 1999
    Posts
    27,449

    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
  •  





Click Here to Expand Forum to Full Width

Featured