What I want to do is same the information stored in cmdPBP and
save it to memo pad. The error I get is kMemoParamStr is undefined
This code I got from PalmSource 1999 notes
I can't find anything on GetParameter
// DmOpenRef MemoDB;
// LocalID MemoDBID = DmFindDatabase(0, MemoDB");
// Word index = 0;
// VoidHand newMemoHandle;
// Ptr newMemoPtr;
// CharPtr memo;
// int memoLength;
// memo = GetParameter(cmdPBP, kMemoParamStr);
// if (!memo) return -1;
// memoLength = StrLen(memo) + 1;
// if (memoLength <= 1 || !MemoDBID) return -1;
// MemoDB = DmOpenDatabase (0, MemoDBID, dmModeReadWrite);
// if (MemoDB) {
// newMemoHandle = DmNewRecord(MemoDB, &index, memoLength);
// if (newMemoHandle) {
// newMemoPtr = MemHandleLock(newMemoHandle);
// DmWrite(newMemoPtr, 0, memo, memoLength);
// MemHandleUnlock(newMemoHandle);
// DmReleaseRecord(MemoDB, index, true);
// MemoSortRecord(MemoDB, &index);
// DmCloseDatabase(MemoDB);
// return 0;
// }
// }
//
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/