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

C / C++ / MFC

 
GeneralRe: Help me plase :: tools bar+simple edit text Pin
TooLeeDiN7-Nov-04 1:53
TooLeeDiN7-Nov-04 1:53 
GeneralProgram to Run/Stary/ Spond while Running Pin
WinAPILearner6-Nov-04 19:44
WinAPILearner6-Nov-04 19:44 
GeneralRe: Program to Run/Stary/ Spond while Running Pin
ThatsAlok6-Nov-04 19:49
ThatsAlok6-Nov-04 19:49 
GeneralRe: Program to Run/Stary/ Spond while Running Pin
WinAPILearner6-Nov-04 22:41
WinAPILearner6-Nov-04 22:41 
GeneralRe: Program to Run/Stary/ Spond while Running Pin
ThatsAlok7-Nov-04 0:22
ThatsAlok7-Nov-04 0:22 
GeneralRe: Program to Run/Stary/ Spond while Running Pin
WinAPILearner7-Nov-04 7:58
WinAPILearner7-Nov-04 7:58 
GeneralRe: Program to Run/Stary/ Spond while Running Pin
ThatsAlok7-Nov-04 17:14
ThatsAlok7-Nov-04 17:14 
GeneralPosting data to web Pin
Rahim Rattani6-Nov-04 19:10
Rahim Rattani6-Nov-04 19:10 
Currently I am using the following piece of code to post data to a website

HRESULT hResult;<br />
hResult = HttpRequest.CreateInstance("Microsoft.XMLHTTP");<br />
<br />
if ( FAILED(hResult) )<br />
return bRetVal; //error <br />
<br />
VARIANT vAsync;<br />
vAsync.vt = VT_BOOL;<br />
vAsync.boolVal = FALSE;<br />
	<br />
VARIANT vUser;<br />
vUser.vt = VT_BSTR;<br />
vUser.bstrVal = NULL;<br />
<br />
VARIANT vPassword;<br />
vPassword.vt = VT_BSTR;<br />
vPassword.bstrVal = NULL;<br />
<br />
HttpRequest->open("POST", "http://web.cgi", vAsync, vUser, vPassword);<br />
HttpRequest->setRequestHeader("Content-Type", "application/x-www-form-urlencoded");<br />
<br />
CString szRequest = "static=1&entry_id=328&name=R&email=r@r.com";<br />
<br />
		VARIANT vRequest;<br />
		vRequest.vt = VT_BSTR;<br />
		vRequest.bstrVal = szRequest.AllocSysString();<br />
<br />
		//Send Http Request<br />
		HttpRequest->send(vRequest);<br />
<br />
		//Read response and status<br />
		//<br />
		m_lHttpStatus = HttpRequest->status;<br />
		m_szHttpStatusText = (char*)HttpRequest->statusText;<br />
<br />
		_bstr_t bsResponse = HttpRequest->responseText;


Everything is going fine the data is posted through the code and OK is retutrned.

But when i view the website the data is not there.

It seemd that the data is not posted to the web.

Am i doing everything right- Is there any opther way to do so.

PLease help me out.
GeneralRe: Posting data to web Pin
ThatsAlok6-Nov-04 19:41
ThatsAlok6-Nov-04 19:41 
GeneralRe: Posting data to web Pin
Rahim Rattani7-Nov-04 1:51
Rahim Rattani7-Nov-04 1:51 
GeneralRe: Posting data to web Pin
ThatsAlok7-Nov-04 2:38
ThatsAlok7-Nov-04 2:38 
GeneralRe: Search engine Pin
ThatsAlok6-Nov-04 17:53
ThatsAlok6-Nov-04 17:53 
GeneralRe: Search engine Pin
ThatsAlok7-Nov-04 0:03
ThatsAlok7-Nov-04 0:03 
GeneralSimple app to call dll Pin
mjeb11116-Nov-04 16:24
mjeb11116-Nov-04 16:24 
GeneralRe: Simple app to call dll Pin
ThatsAlok6-Nov-04 17:49
ThatsAlok6-Nov-04 17:49 
GeneralRe: Simple app to call dll Pin
mjeb11117-Nov-04 10:59
mjeb11117-Nov-04 10:59 
GeneralRe: Simple app to call dll Pin
ThatsAlok7-Nov-04 18:12
ThatsAlok7-Nov-04 18:12 
GeneralRe: Simple app to call dll Pin
mjeb11117-Nov-04 18:33
mjeb11117-Nov-04 18:33 
GeneralRe: Simple app to call dll Pin
ThatsAlok7-Nov-04 21:58
ThatsAlok7-Nov-04 21:58 
GeneralRe: Simple app to call dll Pin
ThatsAlok7-Nov-04 21:58
ThatsAlok7-Nov-04 21:58 
GeneralRe: Simple app to call dll Pin
mjeb11117-Nov-04 22:32
mjeb11117-Nov-04 22:32 
GeneralRe: Simple app to call dll Pin
jan larsen9-Nov-04 0:48
jan larsen9-Nov-04 0:48 
GeneralRe: Simple app to call dll Pin
mjeb11119-Nov-04 6:52
mjeb11119-Nov-04 6:52 
GeneralFont height in pixel Pin
Vancouver6-Nov-04 11:43
Vancouver6-Nov-04 11:43 
GeneralRe: Font height in pixel Pin
Michael Dunn6-Nov-04 15:00
sitebuilderMichael Dunn6-Nov-04 15:00 

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.