|  | @@ -130,7 +130,7 @@ BOOL CCTSManagerApp::InitInstance()
 | 
	
		
			
				|  |  |  	CDatabase db;
 | 
	
		
			
				|  |  |  	if (db.Init(_STR_HOST_, _STR_USER_, _STR_PASSWD_, _STR_DBNAME_))
 | 
	
		
			
				|  |  |  	{
 | 
	
		
			
				|  |  | -		db.InserSoc(_T("RT2851C"), _T("RealTealk"), _T("RTK台湾"));
 | 
	
		
			
				|  |  | +		/*db.InserSoc(_T("RT2851C"), _T("RealTealk"), _T("RTK台湾"));
 | 
	
		
			
				|  |  |  		db.InserSoc(_T("RT2851M"), _T("RealTealk2"), _T("RTK台湾"));
 | 
	
		
			
				|  |  |  		std::vector<STSOC> vtSOC;
 | 
	
		
			
				|  |  |  		db.QuerySoc(vtSOC);
 | 
	
	
		
			
				|  | @@ -139,7 +139,20 @@ BOOL CCTSManagerApp::InitInstance()
 | 
	
		
			
				|  |  |  			TRACE3(_T("name=%s, provider=%s, note=%s\n"), it->name.c_str(),it->provider.c_str(), it->note.c_str());
 | 
	
		
			
				|  |  |  			it->note = _T("xxxx1111xxx");
 | 
	
		
			
				|  |  |  			db.UpdateSoc(it->name, *it);
 | 
	
		
			
				|  |  | +		}*/
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		CFile file;
 | 
	
		
			
				|  |  | +		BYTE* pImage = NULL;
 | 
	
		
			
				|  |  | +		DWORD dwLength = 0;
 | 
	
		
			
				|  |  | +		if ( file.Open(_T("D:\\桌面\\logo\\channels\\AccuWeather.png"), CFile::modeRead) )
 | 
	
		
			
				|  |  | +		{
 | 
	
		
			
				|  |  | +			dwLength = file.GetLength();
 | 
	
		
			
				|  |  | +			pImage = new BYTE[dwLength];
 | 
	
		
			
				|  |  | +			file.Read(pImage, dwLength);
 | 
	
		
			
				|  |  | +			file.Close();
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		db.SetBinaryField("update brand set logo = ? where `name`='SCBC'", pImage, dwLength);
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  #endif
 | 
	
		
			
				|  |  |  
 |