真的没人知?AfxGetApp()->WriteProfileString("LINE\\DVR","Password","hhh")是写进注册表,还是写Win.ini,我在Win.ini与注册表中均搜索不到Password项,我要在哪里才能看到我写的项

解决方案 »

  1.   

    This method writes the specified string into the specified section of the .ini file in the application.
      

  2.   

    The entries are stored as follows: In Windows NT, the value is stored to a registry key.
    In Windows 3.x, the value is stored in the WIN.INI file. 
    In Windows 95, the value is stored in a cached version of WIN.INI.
      

  3.   

    95以上,CWinApp::SetRegistryKey后就写注册表
      

  4.   

    朋友,你这问题还没解决?
    至少在WIN98SE以上版本它将毫无疑问是写进注册表,既然你没有搜索到,那在
    BOOL CYourApp::InitInstance()中一定有
    m_pszProfileName=_tcsdup("其它路径.ini");之类的代码改成了其它位置。