刷网页的流量,相信大家都知道。现在有一个这样的网页,你进出之后,它的网页浏览次数会加一,刷新一次它也会加一。现在我想用MFC来做一个使它浏览次数增加的程序。给个思路,或源代码也好啊。拜拖啦.试过用:
CInternetSession localsession; CInternetFile* webfile=NULL; try
{
webfile=(CInternetFile*)localsession.OpenURL(m_URL);
} catch(CInternetException *pException)
{
webfile=NULL;
pException->Delete();
}
下载源文件不行啊。浏览次数不会加一
CInternetSession localsession; CInternetFile* webfile=NULL; try
{
webfile=(CInternetFile*)localsession.OpenURL(m_URL);
} catch(CInternetException *pException)
{
webfile=NULL;
pException->Delete();
}
下载源文件不行啊。浏览次数不会加一
if(hSession != NULL)
{
HINTERNET hHttp = InternetOpenUrl(hSession, site, NULL, 0, INTERNET_FLAG_DONT_CACHE, 0);
if (hHttp != NULL)
{
InternetCloseHandle(hHttp);
InternetCloseHandle(hSession);
hHttp = NULL;
}
}