BeginUpdateResource API

I am having problems changing resources
in an already compiled EXE.

I believe this is done with

BeginUpdateResource
UpdateResource
EndUpdateResource

If someone can make a quick example then i will be set.
OrCuSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MadshiCommented:
This APIs work only for winNT. Perhaps that's the problem?

Regards, Madshi.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
intheCommented:
hi,
get the "delphi resource editor" from here:
http://www.wilsonc.demon.co.uk/delphi.htm
it contains full source including these apis you ask for examples of.
Regards Barry
0
OrCuSAuthor Commented:
Madshi, question solved, but not problem solved :(

What im doing is creating a song player
that incorporates the song file in the resource, i want to be able to let the user change the song.

The only other way i know is concatenation, but then i lose out on exe compression.

Please help
0
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

MadshiCommented:
>> The only other way i know is concatenation, but then i lose out on exe compression.

Don't know what you mean...

Why not putting the song behind the exe?

[executable][song][song header]

Regards, Madshi.
0
intheCommented:
this sounds interesting ;-)
0
rwilson032697Commented:
Listening
0
OrCuSAuthor Commented:
Well i was planning on storing an un-compressed & encrypted version of the EXE within a resource...

Adding the song to the compiled EXE then Compressing and encrypting, so not only is the EXE compressed but also the song.

Im pretty sure the EXE compressors i have will choke on the extra data if i concatenate the song on to the end of the executable

even so i wont be able to access the data if its compressed when concatenated.  

I was thinking of using a conmpression format for the song, like rar or ace, zip then compress then concatenate. I cant think of anything else.
0
MadshiCommented:
Well, I don't understand fully how your plans were. Anyway, here comes my suggestion:

Compile your EXE and compress it with an exe compressor.
Compress the sound file (e.g. with zip) and simply store it behind your executable.

This will result in the smallest combined file I can think of. The EXE compressor won't be able to compress the sound file more than zip does. So what do you want more than that?

Regards, Madshi.
0
OrCuSAuthor Commented:
Answered my question i guess, not worth 150 points though what was i thinking :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.