Click here to Skip to main content
15,748,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am facing a problem in updating the resources in MFC application.
For example, i have two files SampleText1.txt and SampleText2.txt.

i want to load both the files separately into the resources (at run time) so that when i load the resource and save it, i should have the contents of both the text files.

I used BeginUpdateResource(), UpdateResource() and EndUpdateResource() twice.
But at the end, i observed that the resource only contain the contents of SampleText2.txt file.

In other words, when i am trying to update the resource (for the second time), the earlier contents are being replaced. I want them to append at the end of first one.

Any help is greatly appreciated.

Thanks and Regards,
Kishor Reddy
Richard MacCutchan 23-Mar-15 5:19am    
Sorry, but we cannot guess what your code is doing wrong.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900