Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert unsigned char to const char in vc++ Pin
ThatsAlok17-Apr-05 21:10
ThatsAlok17-Apr-05 21:10 
GeneralRe: convert unsigned char to const char in vc++ Pin
nehathoma17-Apr-05 21:14
nehathoma17-Apr-05 21:14 
GeneralRe: convert unsigned char to const char in vc++ Pin
ThatsAlok17-Apr-05 21:22
ThatsAlok17-Apr-05 21:22 
GeneralRe: convert unsigned char to const char in vc++ Pin
nehathoma17-Apr-05 21:33
nehathoma17-Apr-05 21:33 
GeneralRe: convert unsigned char to const char in vc++ Pin
22491717-Apr-05 22:29
22491717-Apr-05 22:29 
GeneralRe: convert unsigned char to const char in vc++ Pin
nehathoma17-Apr-05 22:55
nehathoma17-Apr-05 22:55 
GeneralRe: convert unsigned char to const char in vc++ Pin
22491717-Apr-05 23:00
22491717-Apr-05 23:00 
GeneralWinHttp- WinHttpSendRequest fails Pin
naeemrbhatti17-Apr-05 19:01
naeemrbhatti17-Apr-05 19:01 
Hi All,

I am using following code to establish a secure connection. But WinHttpSenRequest() fails. The error number returned by GetLastError() is 87, which dont seems to have relation with WinHttpSendRequest().

hSession = WinHttpOpen( L"OFX Download", WINHTTP_ACCESS_TYPE_NAMED_PROXY,
L"192.168.0.48:1749", L"<local>", 0);

if (!hSession)
{
ATLTRACE("Internet Open Failed");
return false;
}

hConnect = WinHttpConnect( hSession,L"ofxServer.com" , INTERNET_DEFAULT_HTTPS_PORT , 0);

if ( !hConnect )
{
DWORD nErr = GetLastError();
WinHttpCloseHandle(hSession);
return false;
}
hRequest = WinHttpOpenRequest( hConnect, L"GET", L"/ofxproxy/ofx_proxy.dll", NULL, WINHTTP_NO_REFERER, NULL, WINHTTP_FLAG_SECURE);

if ( !hRequest )
{
WinHttpCloseHandle(hConnect);
WinHttpCloseHandle(hSession);
return false;
}


CA2W qry(csPostString.GetBuffer()) ;

bResults = WinHttpSendRequest( hRequest, qry, wcslen(qry), WINHTTP_NO_REQUEST_DATA ,0, 0 , 0);

if (!bResults)
{
DWORD dwError = GetLastError();
WinHttpCloseHandle(hRequest);
(hConnect) WinHttpCloseHandle(hConnect);
(hSession) WinHttpCloseHandle(hSession);
return false;
}


Same task is being done very efficiently using WinInet. But due to some reasons I have to move towards WinHTTP.
GeneralListCtrl items not displayed Pin
laiju17-Apr-05 18:06
laiju17-Apr-05 18:06 
GeneralRe: ListCtrl items not displayed Pin
ThatsAlok17-Apr-05 18:33
ThatsAlok17-Apr-05 18:33 
GeneralRe: ListCtrl items not displayed Pin
Michael Dunn17-Apr-05 19:00
sitebuilderMichael Dunn17-Apr-05 19:00 
GeneralRe: ListCtrl items not displayed Pin
laiju17-Apr-05 19:19
laiju17-Apr-05 19:19 
GeneralRe: ListCtrl items not displayed Pin
laiju17-Apr-05 19:38
laiju17-Apr-05 19:38 
GeneralRe: ListCtrl items not displayed Pin
David Crow18-Apr-05 3:01
David Crow18-Apr-05 3:01 
Generalurgent-need some functions help Pin
smarty1217-Apr-05 17:56
smarty1217-Apr-05 17:56 
GeneralRe: urgent-need some functions help Pin
Christian Graus17-Apr-05 18:10
protectorChristian Graus17-Apr-05 18:10 
GeneralRe: urgent-need some functions help Pin
ThatsAlok17-Apr-05 18:26
ThatsAlok17-Apr-05 18:26 
GeneralNeed help for LRESULT CALLBACK Pin
Francis Chau17-Apr-05 17:42
Francis Chau17-Apr-05 17:42 
GeneralRe: Need help for LRESULT CALLBACK Pin
Christian Graus17-Apr-05 18:09
protectorChristian Graus17-Apr-05 18:09 
Generalneed help !!!! urgent !!!! Please !!!!! Pin
khyap17-Apr-05 16:58
khyap17-Apr-05 16:58 
GeneralRe: need help !!!! urgent !!!! Please !!!!! Pin
Christian Graus17-Apr-05 17:42
protectorChristian Graus17-Apr-05 17:42 
GeneralRe: need help !!!! urgent !!!! Please !!!!! Pin
El Corazon17-Apr-05 17:45
El Corazon17-Apr-05 17:45 
GeneralRecording from microphone Pin
ytvsoftware17-Apr-05 14:52
ytvsoftware17-Apr-05 14:52 
GeneralClosing consoles running apps Pin
GraemeS17-Apr-05 6:33
GraemeS17-Apr-05 6:33 
GeneralRe: Closing consoles running apps Pin
ng kok chuan17-Apr-05 14:58
ng kok chuan17-Apr-05 14:58 

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.