OK I have search high and low and still can't figure this one out. 
Here is my struct....
typedef struct tag_DebugMessage
{
        Char            szTime[timeStringLength]; 
        Char            szDate[dateStringLength];
        CharPtr         pszMessage;

} DEBUGMESSAGE, *pDEBUGMESSAGE;

Here is my code that saves it.....
Err iErr = DmWrite(vpszID, offsetof(DEBUGMESSAGE,szTime), &pszData->szTime, 
StrLen(pszData->szTime));
iErr = DmWrite(vpszID, offsetof(DEBUGMESSAGE,szDate), &pszData->szDate, 
StrLen(pszData->szDate));
iErr = DmWrite(vpszID, offsetof(DEBUGMESSAGE,pszMessage), pszData->pszMessage, 
StrLen(pszData->pszMessage));

Here is my code that reads it...
pDEBUGMESSAGE pszLocalData;             
pszLocalData = (pDEBUGMESSAGE)MemHandleLock(hRecord);

Basically it doesnt' work. The first 2 vars, time and date are filled but the 
pszMessage isn't. Am I doing this correctly? I have found samples and followed them 
but it seems not to work. Are there any working examples?

Thanks
Ralph Krausse













-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to