Advertisement Jump to content


This topic is now archived and is closed to further replies.


easy one? palmOS c++ question

This topic is 6327 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey everyone. i.m new to palmOS programming and on top of that only just starting to get into c++, yet i.m in the undesireable situation of having to code a wee lil muötiple choice quiz for palm handheld... i.m sure this question qualifies me for "geek of the week", but so what... 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... also, please point the way to any tutorials you can think of... 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 |||

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!