SetRegistryKey(_T("hellosip")); //这样HKEY_CURRENT_USER/Software/hellosip中保存和读取以后的各项
2、写数据
//theApp.GetVersion是自己写的一个函数,得到程序的当前版本号
//会在HKEY_CURRENT_USER/Software/hellosip/{版本号}/中写入一个AutoAnswer键,值为1
theApp.WriteProfileInt(theApp.GetVersion(), _T("AutoAnswer"), 1);
3、读数据
m_AutoAnswer = theApp.GetProfileInt(theApp.GetVersion(), _T("AutoAnswer"), 0);
2239




被折叠的 条评论
为什么被折叠?



