Re: unsolicited entry in the folder "Temporary Internet Files"
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sat, 09 Feb 2008 11:28:58 -0500
Actually, as far as I know it is SUPPOSED to create the page in the temporary internet
folder.
By the way, it is very poor practice to call user-defined Windows messages WM_ anything;
WM_ is a prefix reserved for use by Microsoft; you should adopt a different prefix for
user-defined messages. Two of the most common are UWM_ and WMU_ .
On Fri, 8 Feb 2008 15:10:12 -0800 (PST), Kai Sandner <ks@xxxxxxxxxxxx> wrote:
Hello,Joseph M. Newcomer [MVP]
I am working on a programme which browses web sites and runs under XP.
The http download is as follows:
pServer = Isession -> GetHttpConnection(strServerName, nPort);
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, NULL, 1, NULL, NULL, dwHttpRequestFlags);
pFile->SendRequest();
pFile->QueryInfoStatusCode(dwStatusCode);
if(dwStatusCode == 200)
{
pFile -> QueryInfo(HTTP_QUERY_LAST_MODIFIED, &sysT);
status.lastMod = sysT;
if(DBlastMod == status.lastMod) //URL content has not changed
since the last visit
{
_BrowseInfo.CSmessage = "Not changed: ";
_BrowseInfo.CSmessage += URLadr;
pWnd -> PostMessage(WM_Protocol, 0, 0);
}
else
{
//***************************************
//a new entry (copy of in the curent URL) in the folder
"Temporary Internet Files" is created here
int bc = 1;
while (bc > 0)
{
try
{
bc = pFile->Read(buftmp,sizeof(buftmp));
status.Bsucces = TRUE;
}
catch (CInternetException *Iex)
{
_BrowseInfo.i_failedDownload ++;
status.Bsucces = FALSE;
Iex -> ReportError();
Iex -> Delete();
break;
}
catch(CFileException * pEx)
{
_BrowseInfo.i_failedDownload ++;
status.Bsucces = FALSE;
Iex -> ReportError();
pEx -> Delete();
break;
}
if(status.Bsucces == TRUE)
{
for(int c = 0; c < bc; c++)
{
buffer[nBytesRead + c] += buftmp[c];
}
nBytesRead += bc;
}
}
}
At the remarked place something - maybe the Internet Explorer -
stores the current website unsolicited to
the "Temporary Internet Files" folder.
It is a multithreaded application and is has occasionally runtime
errors exactly on
the same place.
Thanks for any clue how to avoid this useless duplicate storing!
Kai Sandner
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: unsolicited entry in the folder "Temporary Internet Files"
- From: Kai Sandner
- Re: unsolicited entry in the folder "Temporary Internet Files"
- References:
- unsolicited entry in the folder "Temporary Internet Files"
- From: Kai Sandner
- unsolicited entry in the folder "Temporary Internet Files"
- Prev by Date: Re: CWinThread, CFrameWnd and memory leak???
- Next by Date: Re: CWinThread, CFrameWnd and memory leak???
- Previous by thread: Re: unsolicited entry in the folder "Temporary Internet Files"
- Next by thread: Re: unsolicited entry in the folder "Temporary Internet Files"
- Index(es):
Relevant Pages
|
Loading