小弟是个新手,我用的是VS2005提示错误:
f:\mfc\xishowdlq\xishowdlq\xishowdlq.cpp(31) : warning C4996: 'fopen' was declared deprecated
1>        f:\vs2005\vc\include\stdio.h(234) : see declaration of 'fopen'
1>        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>f:\mfc\xishowdlq\xishowdlq\xishowdlq.cpp(78) : error C2065: 'm_IP' : undeclared identifierm_IP我给给edit control控件添加的CString变量  我在构造函数里写了这样一段代码  目的是读取文件ptfan.txt中sever1后面的IP
数据 并且传给m_IP
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
if( m_Rip=fopen("ptfan.txt","r"))
{for(i=0;m_array[i]!=EOF;i++)
  {m_array[i]=fgetc(m_Rip);
  }
fclose(m_Rip);
 for(m=0,n=0;n==0&&p!=EOF;m++)
  {p=m_array[m];
  if(p=='s')
  {m++;q=m;
   p=m_array[m];
   if(p=='e')
   { m++;
   p=m_array[m];
    if(p=='r')
{m++;
 p=m_array[m];
       if(p=='v')
   {m++;
    p=m_array[m];
 if(p=='e')
 {m++;
      p=m_array[m];
   if(p=='r')
   {m++;
        p=m_array[m];
 if(p=='1')
 {m++;
 for(x=0;m_array[m]!='\n'&&m<15;x++,m++)
  {m_ReadIP[x]=m_array[m];
  }
 }
 else m=q;
   }
   else m=q;
 }
 else  m=q;
   }
   else m=q;
}
else m=q;
   }
   else m=q;
  }
  else m=q;
  }

      m_IP=m_ReadIP;
 
}
}请大家帮忙  小弟十分感谢