SetRegistryKey(_T("RehabilitationChild"));
WriteProfileString("", "ServerIP", "127.0.0.1");
WriteProfileString("", "Password", "daoming");
//读取数据库配置信息
CString strServerIP,strPwd;
strServerIP = GetProfileString("", "ServerIP");
strPwd = GetProfileString("", "Password");
m_strConDB.Format(_T("Provider=SQLOLEDB.1;Data Source=%s;Initial Catalog=Rehabilitation_Child;Persist Security Info=True;User ID=sa;Password=%s"), strServerIP, strPwd);
WriteProfileString("", "ServerIP", "127.0.0.1");
WriteProfileString("", "Password", "daoming");
//读取数据库配置信息
CString strServerIP,strPwd;
strServerIP = GetProfileString("", "ServerIP");
strPwd = GetProfileString("", "Password");
m_strConDB.Format(_T("Provider=SQLOLEDB.1;Data Source=%s;Initial Catalog=Rehabilitation_Child;Persist Security Info=True;User ID=sa;Password=%s"), strServerIP, strPwd);