Jump to content
  • Advertisement


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


easy one? palmOS c++ question

This topic is 6234 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... 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 www.signalgrau.com |||

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!