Check the handle returned by DmGet1Resource(). Don't use it if it's 0.
MemHandleSize(0) acts differently on my several devices and
simulators/emulators. For example, 700p returns 0, while the simulator (T-C
this time) crashed. I don't have my 680 near by to test, but it may return
290K.
On Jan 17, 2008 10:59 PM, David Linker <[EMAIL PROTECTED]> wrote:
> I want to modify a string resource, but have trouble finding the
> correct size.
>
> I know that it is about 3800 bytes long, but get over 290K as strsize
> from the following code!
>
> Any suggestions welcome.
>
> I am using pilrc to compile the resources, SKD 5, and gcc.
>
> // myString is a resource about 3800 bytes long
> h = DmGet1Resource('tSTR', myString);
> strsize = MemHandleSize(h);
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>
--
[Jeff Loucks, Gig Harbor, WA, USA]
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/