On my debug process i found that i conduit stop at the point of
syncHostToHHDWord();
below is part of my program , can anyone help?

struct HHRecord
{
 DWORD userid;
 char  age[5];
 char  sex[10];
 char  weight[10];
 char  height[10];
 char nation[10];

};

 myrecord  theRecordSet;
 HHRecord *pRecord;
  rInfo.m_RecSize = 0;
  rInfo.m_FileHandle = theRemoteDB;
  rInfo.m_pBytes = theBuffer;
  rInfo.m_TotalBytes = 100;

 pRecord->userid = SyncHostToHHDWord( theRecordSet.m_userid);
     strcpy(pRecord->age,theRecordSet.m_age);
     strcpy(pRecord->sex,theRecordSet.m_sex);
     strcpy(pRecord->weight,theRecordSet.m_weight );
     strcpy(pRecord->height,theRecordSet.m_height);
     strcpy(pRecord->nation,theRecordSet.m_nation);

        rInfo.m_pBytes = (byte *)pRecord ;

       retval = SyncWriteRec( rInfo );



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

Reply via email to