krupczak@secola.Columbia.NCR.COM (Bobby Krupczak) (10/30/90)
Hi! I have a question about XmStrings that I hope someone might answer. If it has been asked before, sorry. I am trying to use the fileselection widget. When a user hits "ok", a call is made to get the selection string. This string is in the form XmString. Is there a way to convert from XmString to regular char strings so that I might use this seloction? Thanks Bobby
nazgul@alphalpha.com (Kee Hinckley) (10/31/90)
> XmString. Is there a way to convert from XmString to regular char strings > so that I might use this seloction? That particular return value is singularly unuseful, since 90% of the time you need to convert it. char *cptr; XmStringGetLtoR(str, XmSTRING_DEFAULT_CHARSET, &cptr); /* do stuff */ XtFree(cptr);