GetProfileInt()
GetProfileString()
WriteProfileInt()
WriteProfileString()

解决方案 »

  1.   

    GetPrivateProfileInt  
    GetPrivateProfileSection 
    GetPrivateProfileSectionNames 
    GetPrivateProfileString 
    GetPrivateProfileStruct 
    GetProfileInt 
    GetProfileSection 
    GetProfileString  
    WritePrivateProfileSection 
    WritePrivateProfileString 
    WritePrivateProfileStruct 
    WriteProfileSection . 
    WriteProfileString 
    如果读写自己的ini文件,用带private的
      

  2.   

    我要定义自己的abc.ini文件呢???
      

  3.   

    CString comLine=::GetCommandLine();
    comLine.TrimLeft('"');
    CString filename=comLine.Left(comLine.ReverseFind('\\'))+"\\BankPsw.ini";
    CString strIndex;
    strIndex.Format("%d",this->m_nIndex); char buff[255];
    DWORD dSize=GetPrivateProfileString("BANK_KEY",(LPCTSTR)strIndex,"",buff,255,(LPCTSTR)filename);
        if(dSize)
    {
    if(::AfxMessageBox("该索引的银行主密钥已存在,更改?",MB_YESNO)==IDNO)
    return;
    }
    ::WritePrivateProfileString("BANK_KEY",(LPCTSTR)strIndex,(LPCTSTR)m_sBankPsw,(LPCTSTR)filename); ::AfxMessageBox("保存成功!");
      

  4.   

    自己定义的用 coldsnake(coldsnake) 列出的带有 private 的几个函数就可以了