please excuse what might just be the first of a series of potentially
very stupid questions...
someone said, palmOS is NOT the right environment to get into c++...
and i gotta say that someone was right...
so, what i.m trying to do is copy a string from a strinlist into a
field at runtime... here is my sorry excuse for a code...
if a kind soul could please tell me what the hell i.m doing there,
why i shouldn.t do it and how to do it right...
i.ve put comments in front of some of the code cause without the
commented lines, it works...
static void textinfields(void)
{
MemHandle textH;
Char mystring[200];
FieldType *FieldPtr;
FieldPtr = (FieldType *)GetObjectPtr(MainFrageField);
SysStringByIndex(frageStringList, 0, mystring, sizeof(mystring));
textH = FldGetTextHandle(FieldPtr);
FldSetTextHandle(FieldPtr, NULL);
//MemHandleResize(textH, sizeof(mystring));
//char *str = (char *)MemHandleLock(textH);
//str = (char *)mystring;
//MemHandleUnlock(textH);
//FldSetTextHandle(FieldPtr, mystring);
//FldDrawField(FieldPtr);
}
thanks, and i promise to get back to my
kindergarden-programming-languages once this is done... ;)
martin.k
--
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/