Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. 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