Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! 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