1、 wsprintf宏, 格式化字符串, 格式: wsprintf(sBuff, _T("%s,%d"), _T("字符串"), 10);
sBuf结果 = "字符串,10";
2、读INI文件
char chIP[250]; //返回值
GetPrivateProfileString("节点名", "Key", "默认值", chIP, 250, "路径");
1、 wsprintf宏, 格式化字符串, 格式: wsprintf(sBuff, _T("%s,%d"), _T("字符串"), 10);
sBuf结果 = "字符串,10";
2、读INI文件
char chIP[250]; //返回值
GetPrivateProfileString("节点名", "Key", "默认值", chIP, 250, "路径");