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.

Are you adding those resources all at one time? Try calling EndUpdateResource() and see if that fixes your problem.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.