This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Application Updating Its Resources?


Application Updating Its Resources?

Postby mlepage » Jul 30, 2004 @ 6:48pm

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?
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Jul 30, 2004 @ 7:26pm

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.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Jul 30, 2004 @ 7:35pm

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...
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby mlepage » Jul 30, 2004 @ 8:03pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Jul 30, 2004 @ 8:27pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Jul 30, 2004 @ 9:19pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby mlepage » Jul 30, 2004 @ 10:14pm

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.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Jul 31, 2004 @ 1:10am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Jul 31, 2004 @ 6:35am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum