Пример #1
0
	// general preferences
	void CPreferences::LoadConfigFromRegistry()
	{
		CRegistry reg;
		CString strLastRememberUser = reg.GetLastRememberUser();
		LoadConfigFromRegistry(strLastRememberUser);

		// load proxy settings
		m_strProxyIp		= reg.GetProxyIp();
		m_strProxyPort		= reg.GetProxyPort();
		m_strProxyUsername	= reg.GetProxyUser();
		m_strProxyPassword	= reg.GetProxyPassword();
		m_bIsProxyEnable	= reg.GetProxyEnableFlag();
	
		// webservice url
		CString ws;
		ws	= reg.GetWebserviceURL();
		if (ws != _T(""))
			m_strWebServiceURL = ws;

		// webservice path
		CString path = reg.GetWebservicePath();
		if (path != _T(""))
			m_strWebServicePath = path;
	}