MemHandle myCodeRes = DmGet1Resource( 'code', /*whatever code segment this
is running in*/ foobar );
void* myCodePtr = MemHandleLock ( myCodeRes );
// store this address somewhere persistant (ftr, or prefs or sth like that)
so that you can free the handle when your application is done doing its
stuff (ie, no more alarms)

~Ryan


On 1/24/08, Sagar <[EMAIL PROTECTED]> wrote:
>
>
> >> You NEED to lock your code into memory via MemHandleLock.
> How do I get the handle of my code ?
>



-- 
Thanks and best regards,
Ryan Rix
TamsPalm - The PalmOS Blog


Jasmine Bowden - Class of 2009, Marc Rasmussen - Class of 2008, Erica
Sheffey - Class of 2009, Rest in peace.

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to