Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get access to the previous document in MDI Pin
mr20034-Jul-01 2:14
mr20034-Jul-01 2:14 
AnswerRe: how to get access to the previous document in MDI Pin
l a u r e n4-Jul-01 11:13
l a u r e n4-Jul-01 11:13 
Generaltwo string tables Pin
Maham Gilani4-Jul-01 2:00
Maham Gilani4-Jul-01 2:00 
GeneralRe: two string tables Pin
Tomasz Sowinski4-Jul-01 2:11
Tomasz Sowinski4-Jul-01 2:11 
GeneralRe: two string tables Pin
Maham Gilani4-Jul-01 2:17
Maham Gilani4-Jul-01 2:17 
GeneralRe: two string tables Pin
Tomasz Sowinski4-Jul-01 4:34
Tomasz Sowinski4-Jul-01 4:34 
GeneralRe: two string tables Pin
Erik Funkenbusch4-Jul-01 9:28
Erik Funkenbusch4-Jul-01 9:28 
GeneralCHttpFile::ReadString Pin
Winston,Dang3-Jul-01 23:43
Winston,Dang3-Jul-01 23:43 
When I use this function,I get some tousle code.This following is my code.
Anyone can help me and give me some advice?

CInternetSession* cis=new CInternetSession;
CHttpConnection* pHttpCon=cis->GetHttpConnection(_T("192.168.0.17"),INTERNET_FLAG_RELOAD | INTERNET_FLAG_DONT_CACHE,8007);
CHttpFile * pFile;
//pFile=pHttpCon->OpenRequest(CHttpConnection::HTTP_VERB_GET,_T("/a.xml"));
// pFile->SendRequest();
pFile=(CHttpFile *)cis->OpenURL(_T("Http://192.168.0.17:8007/a.xml"),1,INTERNET_FLAG_TRANSFER_ASCII);
CString szSession,szResult("\0");
while(pFile->ReadString(szSession)!=FALSE)
{
szResult=szResult+szSession;
}
//DWORD dwRet;
//pFile->QueryInfoStatusCode(dwRet);
//if (dwRet == HTTP_STATUS_OK)
//{
// pFile->ReadString(szSession);
// }

MessageBox(szResult);

//int n=szSession.Find(_T("Session"));
// if(n==-1)
// MessageBox(_T("Not Find Session"));
pFile->Close();
pFile = NULL;
delete pFile;
pHttpCon->Close();
pHttpCon = NULL;
delete pHttpCon;
cis->Close();
cis = NULL;
delete cis;
Confused | :confused:
GeneralRe: CHttpFile::ReadString Pin
Anders Molin4-Jul-01 2:02
professionalAnders Molin4-Jul-01 2:02 
GeneralRe: CHttpFile::ReadString Pin
Winston,Dang4-Jul-01 16:04
Winston,Dang4-Jul-01 16:04 
GeneralRe: CHttpFile::ReadString Pin
Winston,Dang5-Jul-01 23:29
Winston,Dang5-Jul-01 23:29 
Generalsmart pointer Pin
Gérald Mercet3-Jul-01 23:39
Gérald Mercet3-Jul-01 23:39 
GeneralRe: smart pointer Pin
Tomasz Sowinski4-Jul-01 0:05
Tomasz Sowinski4-Jul-01 0:05 
GeneralRe: smart pointer Pin
Erik Thompson4-Jul-01 7:36
sitebuilderErik Thompson4-Jul-01 7:36 
GeneralGrid and Databases in VC. Pin
Daniel Visan3-Jul-01 23:13
Daniel Visan3-Jul-01 23:13 
GeneralRe: Grid and Databases in VC. Pin
4-Jul-01 1:33
suss4-Jul-01 1:33 
GeneralProblem with throwing class objects Pin
Malcolm McMahon3-Jul-01 22:47
Malcolm McMahon3-Jul-01 22:47 
GeneralRe: Problem with throwing class objects Pin
Tomasz Sowinski3-Jul-01 23:54
Tomasz Sowinski3-Jul-01 23:54 
GeneralRe: Problem with throwing class objects Pin
Malcolm McMahon4-Jul-01 0:18
Malcolm McMahon4-Jul-01 0:18 
GeneralRe: Problem with throwing class objects Pin
Tomasz Sowinski4-Jul-01 0:35
Tomasz Sowinski4-Jul-01 0:35 
GeneralTHE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan3-Jul-01 22:41
Daniel Visan3-Jul-01 22:41 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 0:17
Tomasz Sowinski4-Jul-01 0:17 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 1:31
Daniel Visan4-Jul-01 1:31 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 1:51
Tomasz Sowinski4-Jul-01 1:51 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 5:22
Daniel Visan4-Jul-01 5:22 

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.