Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Disable conext menu Pin
_AnsHUMAN_ 18-Jul-06 1:14
_AnsHUMAN_ 18-Jul-06 1:14 
AnswerRe: Disable conext menu Pin
see me18-Jul-06 1:15
see me18-Jul-06 1:15 
GeneralRe: Disable conext menu Pin
see me18-Jul-06 1:19
see me18-Jul-06 1:19 
AnswerRe: Disable conext menu [modified] Pin
Parthi_Appu18-Jul-06 1:17
Parthi_Appu18-Jul-06 1:17 
AnswerRe: Disable conext menu Pin
Don Box18-Jul-06 1:20
Don Box18-Jul-06 1:20 
GeneralRe: Disable conext menu Pin
aaaan18-Jul-06 1:48
aaaan18-Jul-06 1:48 
AnswerRe: Disable conext menu [modified] Pin
A_Fa18-Jul-06 2:28
A_Fa18-Jul-06 2:28 
QuestionSending files over HTTP Pin
_AnsHUMAN_ 18-Jul-06 0:36
_AnsHUMAN_ 18-Jul-06 0:36 
Hi All.
I am working on sending a file over HTTP .
// Upload is the name of the application and 192.168.0.3 is the server
<code>
        CInternetSession mySession("Upload");
	CHttpConnection *myConnection=mySession.GetHttpConnection ("192.168.0.3");
	ASSERT(myConnection);
	try{
	
	CHttpFile *myFile=myConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST ,"/myfolder");
	ASSERT(myFile);
	if(myFile->AddRequestHeaders ("Text CR/LF"))
		AfxMessageBox ("Added new header to the file;");
	
	CString writeFileData="hello Anshuman Here.!";
	
	myFile ->WriteString (writeFileData );
	myFile ->Close ();
	}catch(CInternetException *pEx)
	{
		char *msg=new char[1000];
		pEx->GetErrorMessage (msg,1000);
		AfxMessageBox (msg);
		delete[] msg;
	}
	
	
	myConnection->Close ();
	mySession.Close()

When I try to run this application I get a error message saying Invalid Handle value. I tried googling for some answer but all invain.
Can someone point out what's the mistake in the code above or am I missing something ie important.

Thanks in advance.

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_
AnswerRe: Sending files over HTTP Pin
sunit518-Jul-06 2:09
sunit518-Jul-06 2:09 
GeneralRe: Sending files over HTTP Pin
_AnsHUMAN_ 18-Jul-06 2:29
_AnsHUMAN_ 18-Jul-06 2:29 
AnswerRe: Sending files over HTTP Pin
led mike18-Jul-06 6:42
led mike18-Jul-06 6:42 
QuestionMove to the tray Pin
see me18-Jul-06 0:31
see me18-Jul-06 0:31 
AnswerRe: Move to the tray Pin
Ștefan-Mihai MOGA18-Jul-06 0:38
professionalȘtefan-Mihai MOGA18-Jul-06 0:38 
QuestionHow to add scroll bars to a static dialog ? Pin
Vinod Sankaranarayanan18-Jul-06 0:24
Vinod Sankaranarayanan18-Jul-06 0:24 
AnswerRe: How to add scroll bars to a static dialog ? Pin
ThatsAlok18-Jul-06 0:30
ThatsAlok18-Jul-06 0:30 
AnswerRe: How to add scroll bars to a static dialog ? Pin
Anu_Bala18-Jul-06 0:34
Anu_Bala18-Jul-06 0:34 
Questionrenew? Pin
Wim Engberts18-Jul-06 0:10
Wim Engberts18-Jul-06 0:10 
AnswerRe: renew? Pin
Maxwell Chen18-Jul-06 0:27
Maxwell Chen18-Jul-06 0:27 
QuestionRe: renew? Pin
David Crow18-Jul-06 2:58
David Crow18-Jul-06 2:58 
GeneralRe: ,renew? Pin
BadKarma18-Jul-06 1:25
BadKarma18-Jul-06 1:25 
QuestionDialog Based application Pin
Anu_Bala18-Jul-06 0:05
Anu_Bala18-Jul-06 0:05 
AnswerRe: Dialog Based application Pin
toxcct18-Jul-06 0:09
toxcct18-Jul-06 0:09 
GeneralRe: Dialog Based application Pin
Anu_Bala18-Jul-06 0:19
Anu_Bala18-Jul-06 0:19 
GeneralRe: Dialog Based application Pin
Hamid_RT18-Jul-06 0:22
Hamid_RT18-Jul-06 0:22 
GeneralRe: Dialog Based application [modified] Pin
Anu_Bala18-Jul-06 0:28
Anu_Bala18-Jul-06 0:28 

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.