The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: thomasantony on December 20, 2004, 08:32:24 AM

Title: BeginUpdateResource gives error...
Post by: thomasantony on December 20, 2004, 08:32:24 AM
Hi,
   I am trying to add custom resources to a file which is made from copying an existing exe file at runtime using CopyFile. I call it like this


invoke BeginUpdateResource,ADDR LoaderName,FALSE


I get the error ERROR_CALL_NOT_IMPLEMENTED . I use Win98 SE .

Thomas Antony
Title: Re: BeginUpdateResource gives error...
Post by: hutch-- on December 20, 2004, 10:10:32 AM
Thomas, I am pretty sure that function is not available in win98se at all. It will only work on NT based version from win2k up.
Title: Re: BeginUpdateResource gives error...
Post by: Vortex on December 20, 2004, 10:43:45 AM
I think there must be a patch to solve the problem.
Title: Re: BeginUpdateResource gives error...
Post by: PellesC on December 20, 2004, 01:31:39 PM
I read somewhere that the "Microsoft Unicode Layer" for Win 9X should fix this. Not sure it works - never tried it.

Pelle
Title: Re: BeginUpdateResource gives error...
Post by: donkey on December 20, 2004, 01:40:07 PM
I have tried MSLU with Win9x and BeginUpdateResource and it does work. I think I used it for an auto-install application that I was building but I ended up going a different route. The tests were all successful however.
Title: Re: BeginUpdateResource gives error...
Post by: thomasantony on December 20, 2004, 01:50:53 PM
Quote
Thomas, I am pretty sure that function is not available in win98se at all. It will only work on NT based version from win2k up
Hi,
   Thats too bad.... Then why the hell did they have the function in the dll at all ::) . Does anyone know any other way to modify resources of a file dynamically.

Thomas Antony
Title: Re: BeginUpdateResource gives error...
Post by: Vortex on December 20, 2004, 06:26:11 PM
Hi Thomas,

This is what I found:

http://help.madshi.net/madResUnit.htm

I hope it helps you.
Title: Re: BeginUpdateResource gives error...
Post by: thomasantony on December 21, 2004, 06:42:45 AM
Hi,
  Vortex,. Thanx but I didn't understand much in that website. Is there any way to edit the resources directly using info from the PE header perhaps

Thomas Antony