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

C / C++ / MFC

 
GeneralRe: List Box for displaying active users in a LAN Pin
mad_john2-May-06 22:23
mad_john2-May-06 22:23 
AnswerRe: List Box for displaying active users in a LAN Pin
Hamid_RT2-May-06 21:15
Hamid_RT2-May-06 21:15 
Questiondebug assertion failed.. why? Pin
pathakr2-May-06 20:47
pathakr2-May-06 20:47 
Questiondebug assertion failed.. why? Pin
pathakr2-May-06 20:47
pathakr2-May-06 20:47 
AnswerRe: debug assertion failed.. why? Pin
Cedric Moonen2-May-06 20:51
Cedric Moonen2-May-06 20:51 
GeneralRe: debug assertion failed.. why? Pin
yang__lee3-May-06 1:07
yang__lee3-May-06 1:07 
AnswerRe: debug assertion failed.. why? Pin
Nick_Kisialiou2-May-06 21:19
Nick_Kisialiou2-May-06 21:19 
QuestionHttp Connectivity Pin
Girish6012-May-06 20:21
Girish6012-May-06 20:21 
Hello Friends

Help is required from anybody who has done coding for http connectivity using VC++ 6.0 using MFC.

Following is the scenario wherein i am trying to connect the site by authenticating the proxy server.

Following are the steps which i am following, if i am work pls guide me out.


CInternetSession *pSession;
CHttpConnection *pConnection;
CHttpFile *pFile;

CString strObject;
CString szAuthLine;

BOOL bResult;
DWORD dwRet;

pSession= new CInternetSession
(NULL,1,INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);

pConnection=pSession->GetHttpConnection
(_T("http://www.codeproject.com"),1,808,"girish","girish2005");

pFile=pConnection->OpenRequest(NULL,strObject,
NULL,1,NULL,NULL,NULL);

szAuthLine="girish:girish2005";

pFile->AddRequestHeaders(szAuthLine,
HTTP_ADDREQ_FLAG_ADD,strlen(szAuthLine));

bResult=pFile->SendRequest(szAuthLine,NULL,0);

Following mentioned above is the code

pls help me out.

With Rgds




Girish
Software Developer



Questionhow to write source code result to file(urgent) Pin
makaveli_072-May-06 20:13
makaveli_072-May-06 20:13 
AnswerRe: how to write source code result to file(urgent) Pin
kakan2-May-06 20:27
professionalkakan2-May-06 20:27 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 20:33
Cedric Moonen2-May-06 20:33 
GeneralRe: how to write source code result to file(urgent) Pin
kakan2-May-06 20:39
professionalkakan2-May-06 20:39 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 20:37
makaveli_072-May-06 20:37 
AnswerRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 20:31
Cedric Moonen2-May-06 20:31 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 20:36
makaveli_072-May-06 20:36 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 20:43
Cedric Moonen2-May-06 20:43 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 20:57
makaveli_072-May-06 20:57 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 21:08
Cedric Moonen2-May-06 21:08 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:19
makaveli_072-May-06 21:19 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 21:27
Cedric Moonen2-May-06 21:27 
GeneralRe: how to write source code result to file(urgent) Pin
Ryan Binns2-May-06 21:42
Ryan Binns2-May-06 21:42 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:50
makaveli_072-May-06 21:50 
GeneralRe: how to write source code result to file(urgent) Pin
toxcct2-May-06 21:54
toxcct2-May-06 21:54 
GeneralRe: how to write source code result to file(urgent) Pin
Ryan Binns2-May-06 23:32
Ryan Binns2-May-06 23:32 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:51
makaveli_072-May-06 21:51 

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.