GetPrivateProfileString
来源:互联网 发布:江汉大学教务网络 编辑:程序博客网 时间:2024/06/05 18:52
void CTelInfo::InitConfig()
{
LPTSTR lpPath = new char[MAX_PATH];
LPTSTR tmpChar = new char[512];
int iDebug;
CString strTmp;
strcpy(lpPath, ".\\Config.ini");
memset( tmpChar, 0x00, sizeof(tmpChar));
GetPrivateProfileString("SendFilePath", "RECORD", "", tmpChar, 512, lpPath);
m_strRec.Format( "%s", tmpChar );
memset( tmpChar, 0x00, sizeof(tmpChar));
GetPrivateProfileString("SendFilePath", "WAVFILE", "", tmpChar, 512, lpPath);
m_strFile.Format( "%s", tmpChar );
m_iDialSince = GetPrivateProfileInt("SendFilePath", "DIALSINCE", 100, lpPath);
if(m_iDialSince < 100 || m_iDialSince > 150)
{
m_iDialSince = 100;
}
iDebug = GetPrivateProfileInt("Debug", "DEBUGMODEL", 0, lpPath);
memset( tmpChar, 0x00, sizeof(tmpChar));
GetPrivateProfileString("RecordPath", "RECORDPATH_CLIENT", "D:\\电话录音", tmpChar, 512, lpPath);
strTmp.Format( "%s", tmpChar );
m_strRecPath = strTmp + m_strLoginUserName;
m_sRecordAddr = strTmp + m_strLoginUserName;
delete [] lpPath;
delete [] tmpChar;
}
{
LPTSTR lpPath = new char[MAX_PATH];
LPTSTR tmpChar = new char[512];
int iDebug;
CString strTmp;
strcpy(lpPath, ".\\Config.ini");
memset( tmpChar, 0x00, sizeof(tmpChar));
GetPrivateProfileString("SendFilePath", "RECORD", "", tmpChar, 512, lpPath);
m_strRec.Format( "%s", tmpChar );
memset( tmpChar, 0x00, sizeof(tmpChar));
GetPrivateProfileString("SendFilePath", "WAVFILE", "", tmpChar, 512, lpPath);
m_strFile.Format( "%s", tmpChar );
m_iDialSince = GetPrivateProfileInt("SendFilePath", "DIALSINCE", 100, lpPath);
if(m_iDialSince < 100 || m_iDialSince > 150)
{
m_iDialSince = 100;
}
iDebug = GetPrivateProfileInt("Debug", "DEBUGMODEL", 0, lpPath);
memset( tmpChar, 0x00, sizeof(tmpChar));
GetPrivateProfileString("RecordPath", "RECORDPATH_CLIENT", "D:\\电话录音", tmpChar, 512, lpPath);
strTmp.Format( "%s", tmpChar );
m_strRecPath = strTmp + m_strLoginUserName;
m_sRecordAddr = strTmp + m_strLoginUserName;
delete [] lpPath;
delete [] tmpChar;
}
0 0
- GetPrivateProfileString
- GetPrivateProfileString
- GetPrivateProfileString
- GetPrivateProfileString
- GetPrivateProfileString
- GetPrivateProfileString
- GetPrivateProfileString
- getprivateprofilestring
- GetPrivateProfileString使用
- GetPrivateProfileString函数
- getprivateprofilestring用法
- 利用GetPrivateProfileString读取配置文件
- GetPrivateProfileString 和GetPrivateProfileInt
- 有关GetPrivateProfileString的使用方法
- 有关GetPrivateProfileString的使用方法
- 有关GetPrivateProfileString的使用方法
- GetPrivateProfileString ,WritePrivateProfileString详解
- GetPrivateProfileString ,WritePrivateProfileString详解
- github反应过慢,css加载失败问题
- Spark是否会替代Hadoop?
- HDU 1576 A/B 扩展欧几里得
- 使用百度CDN,搜索引擎抓取错误解决问题的经过
- .Net MVC后台接收xheditor上传文件,FTP文件传输
- GetPrivateProfileString
- thinkphp生成的验证码不显示问题解决
- String Resource的定义
- javascript中的常用本地对象
- 第55课:60分钟内从零起步驾驭Hive实战学习笔记
- Arcgis for js加载百度地图
- 世纪难题之--const
- 最l懒的关键字static
- 交换的练习