flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vortex 26 Jun 2004, 11:17
Hi friends,
Here is my tiny example modifying the icon of an executable. The technique is based on using memory templates extracted from compiled resource files. To get the binary resource file (rsrc.bin), I used the res2bin tool. 1.Check the "msgbox.exe" file in the attachment. Look at the icon. 2.Now, run the "update.exe" file, you will notice that the icon of msgbox.exe is updated!
_________________ Code it... That's all... |
|||||||||||
![]() |
|
Tommy 26 Jun 2004, 11:55
Nice example!
![]() |
|||
![]() |
|
jekyll 26 Jun 2004, 21:24
it's not work on my XP Pro
![]() |
|||
![]() |
|
Tommy 27 Jun 2004, 16:24
It works on my WinXP Pro Sp1...
|
|||
![]() |
|
jekyll 27 Jun 2004, 20:36
Hi, Vortex!
It's not work!!!!! Try 1: Start 'MsgBox.exe' and not close it; start 'updaterc.exe' Your program create temp file on my disk named 'rcxNN.tmp', where NN is hexadecimal number. and if run 'updaterc.exe' once more it create new 'rcxNN.tmp'. GetTempFileName? files 'rcxNN.tmp' was not deleted after 'updaterc.exe' was closed. Try 2: start 'msgbox.exe'; close it; start 'updaterc.exe' it create file 'rcxNN.temp', than delete it! nothing happens! Try3: do try 1 than rename file 'rcxNN.tmp' to executable file; start it - ICON CHANGE. But i think program must rewrite 'msgbox.exe'. |
|||
![]() |
|
Vortex 28 Jun 2004, 18:43
Hi jekyll,
All you need to do is to run updaterc.exe without running msgbox.exe _________________ Code it... That's all... |
|||
![]() |
|
asmdemon 28 Jun 2004, 21:53
it works on my xp pro sp1
|
|||
![]() |
|
jekyll 30 Jun 2004, 03:56
Hi, Vortex!
Some strange thing. I run updaterc, than i run msgbox - icon change ok. i delete directory containing this example, than i run msgbox under archive program - icon old. But when i unpack it and run - icon new! Funny! ![]() |
|||
![]() |
|
Vortex 30 Jun 2004, 09:57
Hi jekyll,
Glad to learn that you are O.K with my example program, just don't try to run it from the unzipped file as it may give unpredictable effects. _________________ Code it... That's all... |
|||
![]() |
|
Vortex 10 Jul 2004, 10:29
Another method of updating resources is to use a resource linker:
http://c--sphinx.narod.ru/FILES/rl.zip or http://sheker.chat.ru/rl.zip _________________ Code it... That's all... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.