Click here to Skip to main content
16,021,288 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set the text of a Picture Control Pin
Amrit Agr15-Aug-11 20:07
Amrit Agr15-Aug-11 20:07 
AnswerRe: How to set the text of a Picture Control Pin
Code-o-mat15-Aug-11 22:13
Code-o-mat15-Aug-11 22:13 
AnswerRe: How to set the text of a Picture Control Pin
Richard MacCutchan15-Aug-11 22:36
mveRichard MacCutchan15-Aug-11 22:36 
GeneralRe: How to set the text of a Picture Control Pin
Amrit Agr15-Aug-11 23:22
Amrit Agr15-Aug-11 23:22 
GeneralRe: How to set the text of a Picture Control Pin
Richard MacCutchan16-Aug-11 0:16
mveRichard MacCutchan16-Aug-11 0:16 
GeneralRe: How to set the text of a Picture Control Pin
Code-o-mat16-Aug-11 2:02
Code-o-mat16-Aug-11 2:02 
AnswerRe: How to set the text of a Picture Control Pin
enhzflep16-Aug-11 3:33
enhzflep16-Aug-11 3:33 
QuestionDownload file from internet Pin
_Flaviu15-Aug-11 6:12
_Flaviu15-Aug-11 6:12 
I have a strange problem : I succesfully download a file from a server with follow code :
C++
BOOL CUpdateThread::DownloadFile(CString sAddress, CStringArray& saResult)
{
	CString sTemp;
	BOOL bRet = FALSE;
	CInternetSession ISession;
	CInternetFile* pIFile = NULL;

	try
	{
		pIFile = (CInternetFile*)ISession.OpenURL(sAddress);
		while(pIFile->ReadString(sTemp))saResult.Add(sTemp);
		bRet = TRUE;
	}
	catch(CInternetException* pInternetException)
	{
		pInternetException->GetErrorMessage(m_pMessage->GetBuffer(255),255);
		m_pMessage->ReleaseBuffer();
		pInternetException->Delete();
	}
	catch(CException* pException)
	{
		pException->GetErrorMessage(m_pMessage->GetBuffer(255),255);
		m_pMessage->ReleaseBuffer();
		pException->Delete();
	}

	if(pIFile)
	{
		pIFile->Close();
		delete pIFile;
	}

	ISession.Close();

	return bRet;
}

let say that with this code, I download from an server a text file, test.txt ( a list of words, nothing special ). I change the content of the text file to server, I download again the same text file, test.txt, but content is the same( doesn't have changes ). I stop the application, start again, and if I download again the text file, test.txt, the contain is now changed ... why ?
AnswerRe: Download file from internet Pin
Chuck O'Toole15-Aug-11 7:03
Chuck O'Toole15-Aug-11 7:03 
GeneralRe: Download file from internet Pin
_Flaviu15-Aug-11 8:17
_Flaviu15-Aug-11 8:17 
QuestionCStdioFile::open will not throw an exception, going mad Pin
charlieg15-Aug-11 5:58
charlieg15-Aug-11 5:58 
AnswerRe: CStdioFile::open will not throw an exception, going mad Pin
Graham Breach15-Aug-11 6:24
Graham Breach15-Aug-11 6:24 
GeneralRe: CStdioFile::open will not throw an exception, going mad Pin
charlieg15-Aug-11 6:52
charlieg15-Aug-11 6:52 
QuestionEmbedded Sytems Pin
pix_programmer14-Aug-11 23:39
pix_programmer14-Aug-11 23:39 
AnswerRe: Embedded Sytems Pin
Richard MacCutchan15-Aug-11 3:37
mveRichard MacCutchan15-Aug-11 3:37 
AnswerRe: Embedded Sytems Pin
CPallini15-Aug-11 23:39
mveCPallini15-Aug-11 23:39 
GeneralRe: Embedded Sytems Pin
pix_programmer16-Aug-11 0:13
pix_programmer16-Aug-11 0:13 
GeneralRe: Embedded Sytems Pin
CPallini16-Aug-11 0:17
mveCPallini16-Aug-11 0:17 
GeneralRe: Embedded Sytems Pin
pix_programmer16-Aug-11 0:24
pix_programmer16-Aug-11 0:24 
GeneralRe: Embedded Sytems Pin
CPallini16-Aug-11 0:32
mveCPallini16-Aug-11 0:32 
QuestionMySQL and ODBC!? Pin
Hadi Dayvary13-Aug-11 8:31
professionalHadi Dayvary13-Aug-11 8:31 
AnswerRe: MySQL and ODBC!? Pin
jschell14-Aug-11 7:15
jschell14-Aug-11 7:15 
GeneralRe: MySQL and ODBC!? Pin
Hadi Dayvary14-Aug-11 7:19
professionalHadi Dayvary14-Aug-11 7:19 
GeneralRe: MySQL and ODBC!? Pin
jschell15-Aug-11 8:32
jschell15-Aug-11 8:32 
QuestionAbout Hook InternetConnectA and HttpOpenRequestA modify URLs Pin
678474613-Aug-11 8:11
678474613-Aug-11 8:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.