A)
I've got the following line:
lrecH = DmNewRecord(MemopadDB,&idx,StrLen(ClipText)+1);
and the Metroworks compiler is choking w/ the following:
"illegal implicit conversion from 'short *' to 'unsigned short *'
So, I've tried the following, but to no avail..
lrecH = (unsigned short *)DmNewRecord(MemopadDB,&idx,StrLen(ClipText)+1);
lrecH = (UInt32 *)DmNewRecord(MemopadDB,&idx,StrLen(ClipText)+1);
neither seem to work, what am I doing wrong?
B) I seem to be having trouble w/ Structs in header files, more
specifically , the following code snippet produces an error of " ; expected"
on the line w/ an arrow....
typedef struct {
char NumPZ [ 5];
char OffsetToData [ 8];
char NumRecords [ 4];
char Reserved [22];
char Terminator [ 1];
} MasterInfoType;
typedef struct {
char NumPZ [ 5];
char OffsetToData [ 8];
char NumRecords [ 4];
char InfoAvail [ 1];
char LastOpen [ 5];
char OpLevel [ 1];
char LastPZ [ 5];
char CurrRow [ 7];
char Reserved [ 3];
char Terminator [ 1];
} RestoreInfoType;
typedef struct {
char PZ [ 5];
char OffsetToData [ 8];
char NumRecords [ 4];
char Reserved [22];
char Terminator [ 1];
} PZInfoType;
MasterInfoType MasterInfo;
PZInfoType PZInfo;
RestoreInfoType RestoreInfo;
static Int OpenDatabase(void); // <------errors out here....
what am I doing wrong?
-Paul
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/