Passing pointers of strings to native lib function

Postby jstadolnik on Tue Dec 12, 2000 4:03 am

Passing a pointer of a string to a native library function does not work. The MemHandle of the string ends up pointing to garbage.

Here is a native library function which shows the problem:

void junk(PocketCLibGlobalsPtr gP) {
Value address, *ptr;
ptr = gP->deref(address.iVal);
Char *text = (Char*) MemHandleLock(ptr->sVal);

Joe Stadolnik

Edited by - jstadolnik on 12/13/2000 20:17:43
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to PocketC for Palm OS Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests