Also not long function, more is to load the data in the INI file, but by st_AD_Val. FVal=(float) atof (strtok_r (NULL, ", ", & amp; Sp1));
This is an error, zha get?
BOOL LoadConfigData ()
{
Char * sp=NULL;
Char * sp1=NULL;
Cstrings strCP;
Char pBuffer [100]={0};
M_pChannelCalData. RemoveAll ();
Int nCalPointCount=: : GetPrivateProfileInt (" acquisition card ", "point number," 0, "./configure. Ini ");
For (int n=0; N & lt; NCalPointCount; N++)
{
AD_FLOAT st_AD_Val;
StrCP. The Format (" CP % d ", n + 1);
: : GetPrivateProfileString (" acquisition card, "strCP," ", pBuffer, MAX_PATH, "./configure. Ini ");
St_AD_Val. UAD=atoi (strtok_r (pBuffer, ", ", & amp; Sp));
St_AD_Val. FVal=(float) atof (strtok_r (NULL, ", ", & amp; Sp1));
M_pChannelCalData. Add (st_AD_Val);
}
return 1;
}