16,471
社区成员
发帖
与我相关
我的任务
分享
BOOL VisionnavigationDlg::ReadFileIni()
{
FILE* file;
CString str,sPath;
if(flagbiaoding)
// 像点文件路径
sPath="C:\\NAV.INI";
else
sPath="C:\\NAVC.INI";
// 打开文件
file=fopen(sPath,"r");
// 打开文件失败
if(file==NULL)
{
return false;
}
// 十字丝标定
fscanf(file,"%s",str);
char chString[1024 + 1];
memset(chString, 0, sizeof(chString));
fscanf_s(file, "%s", chString, 1024);
str = chString;