Click here to Skip to main content
15,917,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change font of Tooltip control? Pin
Hamid_RT28-May-07 6:03
Hamid_RT28-May-07 6:03 
QuestionExporting Class Constructer Pin
Programm3r28-May-07 4:35
Programm3r28-May-07 4:35 
AnswerRe: Exporting Class Constructer Pin
Programm3r28-May-07 4:54
Programm3r28-May-07 4:54 
QuestionHow to draw on picture control? Pin
xuqianmylove28-May-07 4:01
xuqianmylove28-May-07 4:01 
GeneralRe: How to draw on picture control? Pin
Matthew Faithfull28-May-07 5:59
Matthew Faithfull28-May-07 5:59 
AnswerRe: How to draw on picture control? Pin
Hamid_RT28-May-07 6:06
Hamid_RT28-May-07 6:06 
AnswerRe: How to draw on picture control? Pin
Hamid_RT29-May-07 6:01
Hamid_RT29-May-07 6:01 
QuestionCheck file By HTTP protocol on a remot system Pin
rsgdba28-May-07 3:32
rsgdba28-May-07 3:32 
Hi all

i am new in VC++.
could you please suggest how can i read a file or check file on internet on a remot system i am using http protocol to connect the system.

I have already tried this

 <br />
	HINTERNET hSession = InternetOpen( "HttpSendRequestEx", INTERNET_OPEN_TYPE_PRECONFIG,<br />
		NULL, NULL, 0);<br />
<br />
<br />
	HINTERNET hConnect = InternetConnect(hSession, argv[1], INTERNET_DEFAULT_HTTP_PORT,<br />
		NULL, NULL, INTERNET_SERVICE_HTTP,NULL, NULL);<br />
<br />
<br />
 HINTERNET    hRequest1 = HttpOpenRequest (hConnect,NULL,<br />
         upFolder, NULL, NULL,NULL,0, 0);<br />
if (HttpSendRequest(hRequest1,NULL,0,NULL,0))<br />
	 {<br />
		while(InternetReadFile(hRequest1, &buffer, 1, &dwRead )==TRUE)<br />
		{<br />
			if (dwRead !=1) break;<br />
			putchar(buffer);<br />
<br />
		}<br />
	 }


But when the file does not exist on the remote system this code read the file. could u please suggest why it is happining.

There is any other alternative to check the file please suggest.

Saurabh Gupta
Software Engineer

QuestionWant to To change from Console mode to Windows mode at run time Pin
vikrantc135528-May-07 3:08
vikrantc135528-May-07 3:08 
AnswerRe: Want to To change from Console mode to Windows mode at run time Pin
Matthew Faithfull28-May-07 6:14
Matthew Faithfull28-May-07 6:14 
GeneralRe: Want to To change from Console mode to Windows mode at run time Pin
vikrantc135528-May-07 20:01
vikrantc135528-May-07 20:01 
GeneralRe: Want to To change from Console mode to Windows mode at run time Pin
Matthew Faithfull29-May-07 7:26
Matthew Faithfull29-May-07 7:26 
QuestionAccessing remote database using mfc Pin
Vikas_12328-May-07 3:02
Vikas_12328-May-07 3:02 
JokeGreat! Pin
CPallini28-May-07 3:06
mveCPallini28-May-07 3:06 
GeneralRe: Great! Pin
Vikas_12328-May-07 19:48
Vikas_12328-May-07 19:48 
AnswerRe: Accessing remote database using mfc Pin
Matthew Faithfull28-May-07 6:38
Matthew Faithfull28-May-07 6:38 
QuestionHow to navigate to a different URL in the same browser instance, through ActiveX plug-In? Pin
vrushaliD28-May-07 2:54
vrushaliD28-May-07 2:54 
QuestionHow to havigate to a different URL in the same browser instance through ActiveX Plug-In? Pin
vrushaliD28-May-07 2:52
vrushaliD28-May-07 2:52 
QuestionUsing PNG / TIF format images in Button control and background Pin
BlrBoy28-May-07 2:47
BlrBoy28-May-07 2:47 
AnswerRe: Using PNG / TIF format images in Button control and background Pin
CPallini28-May-07 3:05
mveCPallini28-May-07 3:05 
AnswerRe: Using PNG / TIF format images in Button control and background Pin
Hamid_RT28-May-07 6:58
Hamid_RT28-May-07 6:58 
Questionvisual studio Pin
deeps_cute28-May-07 2:36
deeps_cute28-May-07 2:36 
QuestionMFC Tutorial (For Windows Application) Pin
Software_Specialist28-May-07 2:09
Software_Specialist28-May-07 2:09 
AnswerRe: MFC Tutorial (For Windows Application) Pin
_AnsHUMAN_ 28-May-07 2:15
_AnsHUMAN_ 28-May-07 2:15 
AnswerRe: MFC Tutorial (For Windows Application) Pin
Hamid_RT28-May-07 2:18
Hamid_RT28-May-07 2:18 

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.