Hi everyone!

this is my first post and first question :) :)

I am wondering is there any resources editor with source out there , then I can learn from here.

I just need to know how to read the resources from a exe file and how to modify them.


sincerely,

:alright:
Posted on 2001-10-30 00:22:08 by Yanda
Hi Yanda,

Glad you could make it here.

For resources you do not need to find the code of an existing resource editor, there are a list of API functions that will do most of what you need.

BeginUpdateResource
CopyImage
EndUpdateResource
EnumResLangProc
EnumResNameProc
EnumResourceLanguages
EnumResourceNames
EnumResourceTypes
EnumResTypeProc
FindResource
FindResourceEx
LoadImage
LoadResource
LockResource
SizeofResource
UpdateResource

Theses are all listed in the WIN32.HLP file under the heading "Resource Functions". If you look them up in the help file, it should give you the capacity to work on resources with no problems.

Regards,

hutch@movsd.com
Posted on 2001-10-30 01:30:19 by hutch--
BeginUpdateResource, UpdateResource, and some of the other apis are nt only functions which won't work under win9x.

...just a reminder.
Posted on 2001-10-30 10:46:05 by Will
alrite hutch--:alright: !!
thx alots for helping me out, hutch-- and 4oh4 :)

yea, as 40h4 mention, how to make those api fit for all windows version???

or is there an alternative way ????

:confused:
Posted on 2001-10-30 21:21:56 by Yanda
anyone?:rolleyes:
Posted on 2001-10-31 23:03:54 by Yanda
Use the MSDN and look up the api's.. there will be a brief table explaining the scope each api has over what os's.

Its really an experience thing.. so start somewhere, and start learning (and playing) :) ... Sorry but win programming in general is slow up-hill battle for experience.. but once you "get the feel" for how bill gates likes to run things you'll pan out and get things done faster (with less trips to the MSDN)..

Best of Luck..
:alright:
NaN
Posted on 2001-11-01 01:52:04 by NaN
alrite!

ok thankx

sincerely,
Posted on 2001-11-01 11:11:47 by Yanda
Time ago, I wanted to do a resource editor. I found problems
with thoses apis: are not portable for every windows platform :(

I had to write replacements. What I did was to learn the
pe file format and study the resource section: .rsrc.

There is a excellent article of M. Pietreck about this point
in MSJ:

http://www.microsoft.com/MSJ/0198/hood0198.htm
Posted on 2001-11-01 11:51:20 by n u M I T_o r
thankx!

sincerely,
Posted on 2001-11-01 14:17:46 by Yanda