Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC modal dialog question Pin
Michael Dunn15-Aug-06 19:55
sitebuilderMichael Dunn15-Aug-06 19:55 
GeneralRe: MFC modal dialog question Pin
Christian Graus15-Aug-06 20:09
protectorChristian Graus15-Aug-06 20:09 
GeneralRe: MFC modal dialog question Pin
Michael Dunn15-Aug-06 20:15
sitebuilderMichael Dunn15-Aug-06 20:15 
AnswerRe: MFC modal dialog question Pin
Hamid_RT18-Aug-06 8:09
Hamid_RT18-Aug-06 8:09 
Questiontab control on docking window Pin
harsha_123415-Aug-06 19:47
harsha_123415-Aug-06 19:47 
QuestionCAsyncSocket::Create for IPV6 Pin
Pappu5star15-Aug-06 19:40
Pappu5star15-Aug-06 19:40 
QuestionSerialize a Wizard Pin
DanYELL15-Aug-06 17:59
DanYELL15-Aug-06 17:59 
QuestionHelp!!Get image and save at local computer... Pin
mimimimilaw15-Aug-06 17:08
mimimimilaw15-Aug-06 17:08 
Here is the code the get image and save as the computer!!!However, sometimes the image did not get all bytes. (e.g image size= 85,687 bytes but it only get 75,776 bytes) It is sometimes only.....I don't know what the problem is?
Can anyone help?

<br />
	UINT nBytesRead;<br />
	TCHAR szBuf[CHUNK_SIZE] = {0};<br />
	CFile objThumbFile;<br />
CHttpFile* pHttpFile             = <br />
                              pHttpConnection->OpenRequest<br />
                              (_T("GET"), <br />
                                 _T(strPhotoLink), <br />
                                 NULL, 1, NULL, NULL, <br />
                                 INTERNET_FLAG_KEEP_CONNECTION |<br />
                                 INTERNET_FLAG_EXISTING_CONNECT |<br />
                                 INTERNET_FLAG_DONT_CACHE |<br />
                                 INTERNET_FLAG_RELOAD);<br />
<br />
			CString strResponse;<br />
			if(!objThumbFile.Open(strOutputFileName, CFile::modeCreate | CFile::modeWrite, NULL))<br />
				return false;<br />
			//   7. Read the response text<br />
			do<br />
			{<br />
				nBytesRead = pHttpFile->Read((void*) szBuf, CHUNK_SIZE);<br />
				strResponse += szBuf;<br />
				objThumbFile.Write(szBuf, CHUNK_SIZE);<br />
				//if(nBytesRead < CHUNK_SIZE)<br />
				//break;<br />
				i++;<br />
			//}while(nBytesRead == CHUNK_SIZE);<br />
			}while(nBytesRead > 0);<br />
			<br />
			objThumbFile.Close();

AnswerRe: Help!!Get image and save at local computer... Pin
Hamid_RT15-Aug-06 19:11
Hamid_RT15-Aug-06 19:11 
AnswerRe: Help!!Get image and save at local computer... Pin
David Crow16-Aug-06 3:36
David Crow16-Aug-06 3:36 
QuestiongSOAP problem, who know this error message? Pin
simonchen.net15-Aug-06 16:37
simonchen.net15-Aug-06 16:37 
AnswerRe: gSOAP problem, who know this error message? Pin
Milton Karimbekallil15-Aug-06 18:09
Milton Karimbekallil15-Aug-06 18:09 
GeneralRe: gSOAP problem, who know this error message? [modified] Pin
simonchen.net16-Aug-06 16:02
simonchen.net16-Aug-06 16:02 
QuestionC++ make exe Pin
CheesyPoofs15-Aug-06 16:17
CheesyPoofs15-Aug-06 16:17 
AnswerRe: C++ make exe Pin
Christian Graus15-Aug-06 16:36
protectorChristian Graus15-Aug-06 16:36 
GeneralRe: C++ make exe Pin
CheesyPoofs15-Aug-06 16:38
CheesyPoofs15-Aug-06 16:38 
GeneralRe: C++ make exe Pin
Christian Graus15-Aug-06 16:48
protectorChristian Graus15-Aug-06 16:48 
GeneralRe: C++ make exe Pin
CheesyPoofs15-Aug-06 16:50
CheesyPoofs15-Aug-06 16:50 
GeneralRe: C++ make exe [modified] Pin
CheesyPoofs15-Aug-06 16:57
CheesyPoofs15-Aug-06 16:57 
GeneralRe: C++ make exe Pin
Christian Graus15-Aug-06 17:03
protectorChristian Graus15-Aug-06 17:03 
GeneralRe: C++ make exe Pin
CheesyPoofs15-Aug-06 17:07
CheesyPoofs15-Aug-06 17:07 
GeneralRe: C++ make exe Pin
Christian Graus15-Aug-06 17:25
protectorChristian Graus15-Aug-06 17:25 
AnswerRe: C++ make exe Pin
Prakash Nadar15-Aug-06 19:37
Prakash Nadar15-Aug-06 19:37 
AnswerRe: C++ make exe Pin
Steve S15-Aug-06 21:42
Steve S15-Aug-06 21:42 
QuestionRe: C++ make exe Pin
David Crow16-Aug-06 3:37
David Crow16-Aug-06 3:37 

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.