Problems with ProStringToWstring using strtok
WF 5.0 and Creo 3.0 and 4.0 have been tested.
The list of dialogs separates the columns by tabs.
ProWstringToString ((char *) list_row, (wchar_t *) getlabels [i]);
I got the name and label of the list that contains the tab in the above format.
token1 = strtok (list_row, "\ t");
Using the above syntax, token1 will return the string before the tab.
For WF5.0, the first token1 returned was declared using ProStringToWstring with ProName.
For Creo 3.0 and 4.0, PRO_TK_BAD_INPUTS was returned when used as the parameter name for ProParameterCreate.
So I added a blank space before the list of dialogs.
I then used ProStringToWstring with token2 = strtok (NULL, "\ t");
Why do we have this problem?
