Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUpgrade to VS2010 Compiler error (atlbase.h) Pin
Maximilien18-Jun-10 4:55
Maximilien18-Jun-10 4:55 
AnswerRe: Upgrade to VS2010 Compiler error (atlbase.h) Pin
Aescleal18-Jun-10 6:46
Aescleal18-Jun-10 6:46 
QuestionHow to develop a visual studio plugin to hook debugging? Pin
kcynic18-Jun-10 4:51
kcynic18-Jun-10 4:51 
AnswerRe: How to develop a visual studio plugin to hook debugging? Pin
VSVC18-Jun-10 16:00
VSVC18-Jun-10 16:00 
QuestionAssertion when Deleting the View in Splitter Window. Pin
janaswamy uday18-Jun-10 3:10
janaswamy uday18-Jun-10 3:10 
Questionboost trim Pin
gmallax17-Jun-10 23:42
gmallax17-Jun-10 23:42 
AnswerRe: boost trim Pin
Nuri Ismail17-Jun-10 23:51
Nuri Ismail17-Jun-10 23:51 
QuestionHTTP_VERB_POST Pin
john563217-Jun-10 22:27
john563217-Jun-10 22:27 
I am tring to post a request to a http webserver. But server is getting null value.

my code is as:

DWORD dwHttpRequestFlags =
      INTERNET_FLAG_RELOAD |
      INTERNET_FLAG_EXISTING_CONNECT | 
      INTERNET_FLAG_NO_AUTO_REDIRECT |
      INTERNET_FLAG_DONT_CACHE;


	CString strHeaders = _T("Accept: text/*\r\nUser-Agent: Your Appliction\r\n");

   CString strFormData = _T("appID=0001&seckey=Tq+jiIicN/");

   CInternetSession session;
   
   CString strServerName, theStringBuffer, strObject;
   DWORD dwServiceType;
   INTERNET_PORT nPort;
   CString strURL = "http://10.105.157.150/FUS/GetVersion";
	AfxParseURL(strURL, dwServiceType, strServerName, strObject, nPort);

   CHttpConnection* pConnection =  session.GetHttpConnection((LPCTSTR)strServerName, (INTERNET_PORT)nPort, (LPCTSTR)NULL, (LPCTSTR)NULL);
   CHttpFile* pFile =   pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, strObject,NULL, 1, NULL, NULL, dwHttpRequestFlags);

   pFile->AddRequestHeaders(strHeaders);
   BOOL result = pFile->SendRequest(strHeaders,(LPVOID)(LPCTSTR)strFormData), strFormData.GetLength());

	CString fullbody;  
	CString strSentence;  
  
	while(pFile->ReadString(strSentence))  
		fullbody = fullbody + strSentence;  

QuestionGetPrivateProfileSectionNamesA returns 0 Pin
hans.sch17-Jun-10 21:42
hans.sch17-Jun-10 21:42 
QuestionRe: GetPrivateProfileSectionNamesA returns 0 Pin
CPallini17-Jun-10 22:25
mveCPallini17-Jun-10 22:25 
AnswerRe: GetPrivateProfileSectionNamesA returns 0 Pin
hans.sch20-Jun-10 20:34
hans.sch20-Jun-10 20:34 
GeneralRe: GetPrivateProfileSectionNamesA returns 0 Pin
CPallini20-Jun-10 21:43
mveCPallini20-Jun-10 21:43 
GeneralRe: GetPrivateProfileSectionNamesA returns 0 Pin
hans.sch21-Jun-10 20:24
hans.sch21-Jun-10 20:24 
GeneralRe: GetPrivateProfileSectionNamesA returns 0 Pin
CPallini21-Jun-10 20:54
mveCPallini21-Jun-10 20:54 
QuestionRe Question Ms PowerPoint password protected File Pin
MsmVc17-Jun-10 20:30
MsmVc17-Jun-10 20:30 
AnswerRe: Re Question Ms PowerPoint password protected File Pin
«_Superman_»17-Jun-10 20:37
professional«_Superman_»17-Jun-10 20:37 
GeneralRe: Re Question Ms PowerPoint password protected File Pin
MsmVc17-Jun-10 20:40
MsmVc17-Jun-10 20:40 
Questiondownload file from server Pin
john563217-Jun-10 20:11
john563217-Jun-10 20:11 
AnswerRe: download file from server Pin
«_Superman_»17-Jun-10 20:15
professional«_Superman_»17-Jun-10 20:15 
GeneralRe: download file from server Pin
john563217-Jun-10 21:04
john563217-Jun-10 21:04 
QuestionCombobox Pin
Chandrasekharan P17-Jun-10 19:29
Chandrasekharan P17-Jun-10 19:29 
AnswerRe: Combobox Pin
Cedric Moonen17-Jun-10 19:57
Cedric Moonen17-Jun-10 19:57 
GeneralRe: Combobox Pin
Chandrasekharan P17-Jun-10 20:17
Chandrasekharan P17-Jun-10 20:17 
GeneralRe: Combobox Pin
Niklas L17-Jun-10 21:53
Niklas L17-Jun-10 21:53 
GeneralRe: Combobox Pin
Code-o-mat18-Jun-10 4:15
Code-o-mat18-Jun-10 4:15 

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.