Ben Combee wrote:
At 01:50 PM 6/9/2004, you wrote:

I'm probably missing something very basic here, but I didn't see any obvious answers in the API documentation.

I want to write to an existing resource I have open. Size is fine, I just want to change the data already stored there.

I open it using DmGetResource and lock it using MemHandleLock to get a pointer. The data is there, I can read it fine.

As soon as I put something in where that pointer is, I get "Fatal Exception".


Are you using DmWrite, DmSet, or DmStrCopy to write back to the handle? All resources are stored on the storage heap, so you can't write directly to the data.


No. I wondered if that was the case, but it doesn't say that in the documentation for DmGetResource (I'd expect it to).

So you can read from the bare pointer, but you can't write to the bare pointer?


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to