Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Change the i to 0 in the lines:
aszNames = (char**)calloc(1, sizeof(char*)); aszNames[0] = (char*)calloc(PRO_NAME_SIZE, sizeof(char));ProWstringToString(aszNames[0], pro_unitSystem.name);
//Set the selected unit system
err = ProUIOptionmenuSelectednamesSet(szDlgName, "optUnits", 1, aszNames);free(aszNames[0]);
free(aszNames);
Greetings Lars