Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: drawing and moving Pin
dehseth6-May-08 19:53
dehseth6-May-08 19:53 
AnswerRe: drawing and moving Pin
Nelek7-May-08 11:05
protectorNelek7-May-08 11:05 
GeneralRe: drawing and moving Pin
shohel8997-May-08 18:52
shohel8997-May-08 18:52 
GeneralRe: drawing and moving Pin
Nelek8-May-08 12:39
protectorNelek8-May-08 12:39 
QuestionWhen resizing, some child control doesn't show correctly until I put the mouse curson on it Pin
followait6-May-08 16:42
followait6-May-08 16:42 
AnswerRe: When resizing, some child control doesn't show correctly until I put the mouse curson on it Pin
Naveen6-May-08 17:34
Naveen6-May-08 17:34 
GeneralRe: When resizing, some child control doesn't show correctly until I put the mouse curson on it Pin
followait6-May-08 23:02
followait6-May-08 23:02 
Questionhttp download question Pin
monsieur_jj6-May-08 16:28
monsieur_jj6-May-08 16:28 
Hi all,

I am making this pauseresume downloader http version:

hOpen = InternetOpen("PauseResumeDemo",INTERNET_OPEN_TYPE_PRECONFIG ,NULL, NULL, NULL);
	if(!hOpen)
	{
         return false;
	}

	DWORD dwContext = 123;

	strStaus.Format("Connecting to server..");
	GetDlgItem(IDC_STATIC_STATUSNEW)->SetWindowText(strStaus);

	if ( !(hConnect = InternetConnect ( hOpen, "10.5.1.4/downloads/managepoint" , INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0  , 0) ) )
	{
		CString strMsg;
		string strReposeFromServer;
		GetLastResponse(strReposeFromServer);
		strMsg.Format("Error:%d\nDescription:%s", GetLastError(), strReposeFromServer.c_str());
		AfxMessageBox(strMsg, MB_OK);
		return false;
	}
	
	strStaus.Format("Finding out if this server supoprts Pause & Resume..");
	GetDlgItem(IDC_STATIC_STATUSNEW)->SetWindowText(strStaus);


now this works fine up to this point

LPCTSTR lpszVerb = "GET";
LPCTSTR lpszObjectName = "/";
LPCTSTR lpszVersion = NULL;			// Use default.
LPCTSTR lpszReferrer = NULL;		// No referrer.
LPCTSTR *lplpszAcceptTypes = NULL;	// Whatever the server wants to give us.
DWORD dwOpenRequestFlags = INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP |
		INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS |
		INTERNET_FLAG_KEEP_CONNECTION |
		INTERNET_FLAG_NO_AUTH |
		INTERNET_FLAG_NO_AUTO_REDIRECT |
		INTERNET_FLAG_NO_COOKIES |
		INTERNET_FLAG_NO_UI |
		INTERNET_FLAG_RELOAD;
DWORD dwOpenRequestContext = 0;
HINTERNET hRequest = HttpOpenRequest(hConnect, lpszVerb, lpszObjectName, lpszVersion,
		lpszReferrer, lplpszAcceptTypes,
		dwOpenRequestFlags, dwOpenRequestContext);
sendReq = HttpSendRequest(hRequest, NULL, 0, NULL, 0);


HttpSendRequest returns falls however if i change the url to just 10.5.1.4 it returns true however the file that should be downloaded isnt there.

What can i do and what should i do after?

Thanks
Jayjay
AnswerRe: http download question Pin
Randor 6-May-08 16:46
professional Randor 6-May-08 16:46 
GeneralRe: http download question Pin
monsieur_jj6-May-08 16:57
monsieur_jj6-May-08 16:57 
GeneralRe: http download question Pin
Randor 6-May-08 17:16
professional Randor 6-May-08 17:16 
GeneralRe: http download question Pin
monsieur_jj6-May-08 21:20
monsieur_jj6-May-08 21:20 
GeneralRe: http download question Pin
Randor 7-May-08 4:01
professional Randor 7-May-08 4:01 
GeneralRe: http download question Pin
monsieur_jj7-May-08 15:23
monsieur_jj7-May-08 15:23 
Questionsomething wrong when use createservice Pin
abruzzi6-May-08 14:48
abruzzi6-May-08 14:48 
AnswerRe: something wrong when use createservice Pin
Randor 6-May-08 15:25
professional Randor 6-May-08 15:25 
GeneralRe: something wrong when use createservice Pin
abruzzi6-May-08 15:34
abruzzi6-May-08 15:34 
GeneralRe: something wrong when use createservice Pin
Randor 6-May-08 15:55
professional Randor 6-May-08 15:55 
GeneralRe: something wrong when use createservice Pin
abruzzi6-May-08 16:33
abruzzi6-May-08 16:33 
GeneralRe: something wrong when use createservice Pin
Randor 6-May-08 16:58
professional Randor 6-May-08 16:58 
GeneralRe: something wrong when use createservice Pin
JudyL_MD7-May-08 3:02
JudyL_MD7-May-08 3:02 
QuestionCan I use a local Bitmap object constructor a global CachedBitmap object? Pin
followait6-May-08 14:08
followait6-May-08 14:08 
AnswerRe: Can I use a local Bitmap object constructor a global CachedBitmap object? Pin
Randor 6-May-08 15:21
professional Randor 6-May-08 15:21 
AnswerRe: Can I use a local Bitmap object constructor a global CachedBitmap object? Pin
Saurabh.Garg6-May-08 15:27
Saurabh.Garg6-May-08 15:27 
Questionrestore data to edit box when double click a file Pin
lahom6-May-08 13:46
lahom6-May-08 13:46 

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.