I've wrote a little program in asm(compiled and linked using MASM 6.12).... It uses some strings in it's resources... Then i thought.. why not make another little program that modifyes other one's resources so i can modify first one settings without using Registry or .ini files...
And here is where the troubles strarts...
I wrote the resource modifying program in C just in the way shown in the Platform SDK help,it something like this:
/*I've missed the error checking here*/
HANDE h;
h=LoadLibrary("exe_which_resources_to_modify"
;
FindResource(h,
"#2040", //ID of the string to be modifyed
RT_STRING);
.....
.....
But...
LoadLibrary() fails and GetLast() error returned error 11(BAD_FORMAT)....
I've tryed it with other .exe-s ..
result was that sometimes it succeeds to load exe,sometimes not
I just don't know where is the problem ... or where it might be...
May be rebuilding my program(the one to be modifyed) with an extra options ...
Help please .. i dont'know what to do....
And here is where the troubles strarts...
I wrote the resource modifying program in C just in the way shown in the Platform SDK help,it something like this:
/*I've missed the error checking here*/
HANDE h;
h=LoadLibrary("exe_which_resources_to_modify"
FindResource(h,
"#2040", //ID of the string to be modifyed
RT_STRING);
.....
.....
But...
LoadLibrary() fails and GetLast() error returned error 11(BAD_FORMAT)....
I've tryed it with other .exe-s ..
result was that sometimes it succeeds to load exe,sometimes not
I just don't know where is the problem ... or where it might be...
May be rebuilding my program(the one to be modifyed) with an extra options ...
Help please .. i dont'know what to do....