943,584 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 655
  • C++ RSS
Nov 10th, 2008
0

WinAPI: UpdateResource size limit?

Expand Post »
Hi,

I've been experiencing problems when attempting to add resources to a DLL using UpdateResource. I'm adding many images to the DLL, and as soon as the overall image size reaches ~16MB, the DLL loses other resources that previously existed.

Any ideas?

Thanks,
Gil Moses.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gil_mo is offline Offline
10 posts
since May 2008
Nov 10th, 2008
0

Re: WinAPI: UpdateResource size limit?

Are you adding those resources all at one time? Try calling EndUpdateResource() and see if that fixes your problem.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,947 posts
since Aug 2005
Nov 10th, 2008
0

Re: WinAPI: UpdateResource size limit?

I'm adding 30 at a time.

The full story is, I once had this problem with DLLs built with MSVC, and fixed it by adding in quants.

Now that I've moved to building with Intel C++ compiler, the add fails even with the above trick.

Gil.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gil_mo is offline Offline
10 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: extracting data from a string
Next Thread in C++ Forum Timeline: Include h files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC