Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource trouble.... help if you can..

Status
Not open for further replies.

zarrro

Programmer
Jul 31, 2000
2
0
0
BG
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....


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top