>> Followup - how ARE you meant to work with string literals during subcalls? I
>> presume code like
>> 
>>         start = StrStr(text, "My literal string");
>> 
>> is equally invalid?
>
>Correct. The safe way to access constant strings is to put them into 
>string resources and access them using DmGetResource or DmGet1Resource.

That's what I was doing, not having seen Neil Rhodes' suggestion concerning
"PC Relative" strings.

I'm obtaining a handle using DmGetResource then locking it using
MemHandleLock. The correct procedure to tidy up is then - what?
MemHandleUnlock folowed by DmReleaseResource?

Paul.

Reply via email to