Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDao Recordset cloning ! Pin
Hadi Rezaee24-Feb-03 0:12
Hadi Rezaee24-Feb-03 0:12 
QuestionRegSetValueEx without '\0' ??? Pin
Daniel Strigl23-Feb-03 21:20
Daniel Strigl23-Feb-03 21:20 
AnswerRe: RegSetValueEx without '\0' ??? Pin
Jon Hulatt23-Feb-03 21:59
Jon Hulatt23-Feb-03 21:59 
GeneralRe: RegSetValueEx without '\0' ??? Pin
Daniel Strigl23-Feb-03 22:27
Daniel Strigl23-Feb-03 22:27 
GeneralStop a USB device. Pin
Brian van der Beek23-Feb-03 21:11
Brian van der Beek23-Feb-03 21:11 
GeneralRe: Stop a USB device. Pin
Shiva Prasad T. S.23-Feb-03 22:05
Shiva Prasad T. S.23-Feb-03 22:05 
GeneralRe: Stop a USB device. Pin
Brian van der Beek23-Feb-03 22:32
Brian van der Beek23-Feb-03 22:32 
GeneralFailed to CreateInstance while using IXMLHttpRequestPtr Pin
adapterJohn23-Feb-03 21:09
adapterJohn23-Feb-03 21:09 
Hello, I am using MSXML to get HTTP response from a webserver. The problem is when I use
pIXMLHTTPRequest.CreateInstance("Microsoft.XMLHTTP");
it always goes to error and can't continue to open the connection.
Can someone tell me where possibly the problem is, and why should I create the instance?
Many thanks in advance.
*****************************************


BOOL CAPIDlg::MakeRequest()
{

BOOL bRetVal=FALSE;
BSTR Result=NULL;

try{
MSXML::IXMLHttpRequestPtr pIXMLHTTPRequest;
HRESULT hResult;
hResult = pIXMLHTTPRequest.CreateInstance("Microsoft.XMLHTTP");
//Test the connection
if ( FAILED(hResult) ) {
MessageBox("Fail to create the connection");
return bRetVal;
}


MessageBox("Continue anyway");
//Open the connection
pIXMLHTTPRequest->open("POST",(_bstr_t)"www.yahoo.com");
//Send the request
pIXMLHTTPRequest->send();
MessageBox("Success to open");
//Get the result
Result=pIXMLHTTPRequest->responseText;
if(Result)
//Display the result
{m_Result.SetWindowText((_bstr_t)Result);
}

else
//Report error
MessageBox("Can't make the connection");




}
catch(...) {
//Report error
MessageBox("Can't initialize the HTTP request");
}

return true;


}

QuestionWhy my vc++ is slow when loading a .dsw? Pin
sages23-Feb-03 20:50
sages23-Feb-03 20:50 
AnswerRe: Why my vc++ is slow when loading a .dsw? Pin
Ryan_Roberts24-Feb-03 1:04
Ryan_Roberts24-Feb-03 1:04 
AnswerRe: Why my vc++ is slow when loading a .dsw? Pin
AlexO24-Feb-03 2:41
AlexO24-Feb-03 2:41 
GeneralRe: Why my vc++ is slow when loading a .dsw? Pin
sages24-Feb-03 14:51
sages24-Feb-03 14:51 
Generalabout file operation Pin
fogmen23-Feb-03 19:49
fogmen23-Feb-03 19:49 
GeneralRe: about file operation Pin
fz_zhou23-Feb-03 20:30
fz_zhou23-Feb-03 20:30 
GeneralRe: about file operation Pin
Michael Dunn23-Feb-03 20:42
sitebuilderMichael Dunn23-Feb-03 20:42 
GeneralRe: about file operation Pin
fogmen24-Feb-03 0:54
fogmen24-Feb-03 0:54 
GeneralFTP query Pin
Member 355617523-Feb-03 18:42
Member 355617523-Feb-03 18:42 
GeneralAccess Java class from VC++ Pin
Chintan23-Feb-03 17:38
Chintan23-Feb-03 17:38 
GeneralRe: Access Java class from VC++ Pin
adapterJohn24-Feb-03 1:27
adapterJohn24-Feb-03 1:27 
GeneralRe: Access Java class from VC++ Pin
KingTermite24-Feb-03 2:20
KingTermite24-Feb-03 2:20 
GeneralRe: Access Java class from VC++ Pin
Chintan27-Feb-03 17:58
Chintan27-Feb-03 17:58 
GeneralTo Display the percentage font inside a "Progress Bar" Pin
Neel Abraham23-Feb-03 17:13
Neel Abraham23-Feb-03 17:13 
GeneralRe: To Display the percentage font inside a "Progress Bar" Pin
valikac23-Feb-03 17:46
valikac23-Feb-03 17:46 
QuestionHow to Update numbers in an editbox control on the fly "OnMouseMove" Pin
Neel Abraham23-Feb-03 17:10
Neel Abraham23-Feb-03 17:10 
AnswerRe: How to Update numbers in an editbox control on the fly "onmousemove" Pin
HENDRIK R24-Feb-03 0:49
HENDRIK R24-Feb-03 0:49 

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.