VC里有没有读取Ini文件的类或方法??? GetProfileInt()GetProfileString()WriteProfileInt()WriteProfileString() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 GetPrivateProfileInt GetPrivateProfileSection GetPrivateProfileSectionNames GetPrivateProfileString GetPrivateProfileStruct GetProfileInt GetProfileSection GetProfileString WritePrivateProfileSection WritePrivateProfileString WritePrivateProfileStruct WriteProfileSection . WriteProfileString 如果读写自己的ini文件,用带private的 我要定义自己的abc.ini文件呢??? 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("保存成功!"); 自己定义的用 coldsnake(coldsnake) 列出的带有 private 的几个函数就可以了 如何截取验证码? 打开文件对话框移动的问题 【请教】工具栏上插入图标的问题?? 动态创建控件的问题。 ctrList中的数据导为Excel后,如何让数据类型保持不变? 如何写自己的、不是从mfc派生的类呢?用“建立类向导”和“新建类”好象都是从mfgc派生的 请大家帮帮忙好不好!谢谢!!急死我了! 抓狂中!请教:VC引用ADO连接excel时出现comutil.h的错误怎么解决 跪求!!!钢球表面缺陷的自动检测与识别的源代码 我的menu没了 大数据量发送问题:大虾过来看看,问题出在哪? 谁知道如何理CSocket的OnReceive函数???
GetPrivateProfileSection
GetPrivateProfileSectionNames
GetPrivateProfileString
GetPrivateProfileStruct
GetProfileInt
GetProfileSection
GetProfileString
WritePrivateProfileSection
WritePrivateProfileString
WritePrivateProfileStruct
WriteProfileSection .
WriteProfileString
如果读写自己的ini文件,用带private的
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("保存成功!");