fontpreviewheight = GetDlgItemInt(dlghwndset, 51, NULL, 1);
fontmainheight = GetDlgItemInt(dlghwndset, 52, NULL, 1);
usersetheight = GetDlgItemInt(dlghwndset, 55, NULL, 1);
previewmulti= GetDlgItemInt(dlghwndset, 53, NULL, 1);
mainmulti = GetDlgItemInt(dlghwndset, 54, NULL, 1);
previewwindowswidth= GetDlgItemInt(dlghwndset, 56, NULL, 1);
previewwindowheight= GetDlgItemInt(dlghwndset, 59, NULL, 1);
FILE *file = fopen("set.txt", "w+");
if (file == NULL)
{
MessageBox(NULL, _T("write file error"), _T("write file error"), MB_OK);
}
else
{
if (fwprintf_s(file, _T("%d,%d,%d,%d,%d,%d,%d\n"),fontpreviewheight, fontmainheight,previewmulti,mainmulti,usersetheight, previewwindowswidth, previewwindowheight)< 0)
{
MessageBox(NULL, _T("write file error"), _T("write file error"), MB_OK);
}
}
wchar_t str0[20], str1[20], str2[20], str3[20], str4[20], str5[20], str6[20];
wchar_t a;
fwscanf_s(fileset, _T("%[^,]%c%[^,]%c%[^,]%c%[^,]%c[^,]%c%[^,]%c%[^\n]\n"),
str0,&a, str1, &a, str2, &a, str3, &a, str4, &a, str5, &a, str6);这样写不对。。。
请问这个函数怎么用