CStdString k = key; k += "Count"; wsprintf(buffer, "%u", count);  WritePrivateProfileString(VBA_PREF, k, buffer, regVbaPath);
void regSetBinaryValue(char *key, char *value, int count){  if(regEnabled) {    LONG res = RegSetValueEx(vbKey,                             key,                             NULL,                             REG_BINARY,                             (const UCHAR *)value,                             count);  } else {    WritePrivateProfileStruct(VBA_PREF,                              key,                              value,                              count,                              regVbaPath);  }}