WinAPI: UpdateResource size limit?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2008
Posts: 8
Reputation: gil_mo is an unknown quantity at this point 
Solved Threads: 0
gil_mo gil_mo is offline Offline
Newbie Poster

WinAPI: UpdateResource size limit?

 
0
  #1
Nov 10th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,445
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1475
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: WinAPI: UpdateResource size limit?

 
0
  #2
Nov 10th, 2008
Are you adding those resources all at one time? Try calling EndUpdateResource() and see if that fixes your problem.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 8
Reputation: gil_mo is an unknown quantity at this point 
Solved Threads: 0
gil_mo gil_mo is offline Offline
Newbie Poster

Re: WinAPI: UpdateResource size limit?

 
0
  #3
Nov 10th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC