Page 1 of 1

Application Updating Its Resources?

PostPosted: Jul 30, 2004 @ 6:48pm
by mlepage
Can a Pocket PC application update its own resources using BeginUpdateResource, UpdateResource, and EndUpdateResource APIs as described here:



What I experience, is that the call to BeginUpdateResource fails. Is this because the application is running? I can't really tell because GetLastError returns 0.

Is it possible for an application to update its resources? How?

PostPosted: Jul 30, 2004 @ 7:26pm
by Kzinti
I might be wrong, but I seem to remember having read that you can't update resources on PPC. But then you have to wonder why the API is there. Mmm.

PostPosted: Jul 30, 2004 @ 7:35pm
by fzammetti
I'm remembering the same thing as Thierry... I think in the one instance it came up for me, I had to copy the resource before I could modify it at all. Let us know if you find out differently though...

PostPosted: Jul 30, 2004 @ 8:03pm
by mlepage

PostPosted: Jul 30, 2004 @ 8:27pm
by mlepage

PostPosted: Jul 30, 2004 @ 9:19pm
by Kzinti

PostPosted: Jul 30, 2004 @ 10:14pm
by mlepage
OK thanks! Next time I rewrite this code, I'll give memory mapped files a try. Right now I just load them into memory, since they're relatively small anyways.

PostPosted: Jul 31, 2004 @ 1:10am
by mlepage

PostPosted: Jul 31, 2004 @ 6:35am
by Kzinti