¶ÁÈ¡ÍøÒ³ºÍÍøÒ³±£´æÏÂÀ´µÄHTMLÎļþ²»Í¬Âð£¿
ÓÃÏÂÃæÕâ¸öº¯Êý¿ÉÒÔ¶ÁÈ¡ÍøÒ³±£´æÏÂÀ´µÄHTMÎļþ£¬µ«ÊDz»ÄÜÖ±½Ó¶ÁÈ¡ÍøÒ³£¬ÎªÊ²Ã´£¿
BOOL GetSourceHtml(CString theUrl,CString Filename)
{
CInternetSession session;
CInternetFile* file = NULL;
// ofstream ICG3(CurPath +_T("\\webpage.txt"), ios::out );
try
{
// ÊÔ×ÅÁ¬½Óµ½Ö¸¶¨URL
file = (CInternetFile*) session.OpenURL(theUrl);
}
catch (CInternetException* m_pException)
{
// Èç¹ûÓдíÎóµÄ»°£¬ÖÃÎļþΪ¿Õ
file = NULL;
m_pException->Delete();
return FALSE;
}
// ÓÃdataStoreÀ´±£´æ¶ÁÈ¡µÄÍøÒ³Îļþ
CStdioFile dataStore;
if (file)
{
CString somecode, allcode; //Ò²¿É²ÉÓÃLPTSTRÀàÐÍ£¬½«²»»áɾ³ýÎı¾ÖеÄ\n»Ø³µ·û
BOOL bIsOk = dataStore.Open(Filename, CFile::modeCreate | CFile::modeWrite | CFile::shareDenyWrite | CFile::typeText);
if (!bIsOk)
return FALSE;
string str;
// ¶ÁдÍøÒ³Îļþ£¬Ö±µ½Îª¿Õ
while (file->ReadSt
Ïà¹ØÎÊ´ð£º
¸÷λ´óʦ½²½âÏ£¬Ð»Ð»
²»ÊǺÜÃ÷È·ÄãÒªµÄÊÇʲô
LV GUCCI ÏãÄζùÒ»±ÈÒ»°ü°ü Åú·¢ÁãÊÛ£¡
¹ãÖÝÊÐÌìÁúƤ¾ß³§³ÉÁ¢ÓÚ2002Äê¡£ÊÇÒ»¼ÒÓжàÄêרҵÉè¼Æ¡¢Éú²ú¡¢¾Óª¸ßµµÆ¤¾ßϵÁвúÆ·µÄÆóÒµ¡£Ö÷ÓªLV,GUCCI,C ......
ÿ´Î¹Ø±ÕµÄʱºò¾Í³öÏÖÏÂÃæÕâ¸ö
Microsoft® HTML Help Executable Óöµ½ÎÊÌâÐèÒª¹Ø±Õ¡£ÎÒÃǶԴËÒýÆðµÄ²»±ã±íʾ±§Ç¸¡£
´ò¿ªºóÓÐÒ»¸öÎÊÌâ,±¾À´ÓеÄË÷ÒýûÓÐÁË,¾Í²»ÄÜËÑË÷ÄÚÈÝÁË,²é×ÊÁϼ«Îª²» ......
<div class="modBody">
<ul>
<li> <a href='/logs/37254974.html'>ÁùÖÜÄê </a> </li>
</ul>
& ......
C# code:
protected void Button1_Click(object sender, EventArgs e)
{
string str = HttpContext.Current.Server.MapPath("/WebSite1");
str += @"\index.htm";
......
ÈçÌâ¡£Ïë×Ô¼º×öÒ»¸ö¡£Ö÷ÒªÊÇÉÏ´«Í¼Æ¬µÄ¹¦ÄÜ¡£
´ó¼ÒÓÐʲôºÃµÄÏë·¨¡£
²»ºÃ×ö
²»¶®×ö
°ÑfckeditorÄÃÀ´ÅäÖÃһϣ¬Ö»Áô¸öͼƬÉÏ´«µÄ¾ÍÐÐÁË
ÓÐÄÄλ¸ßÊÖ×ö¹ýµÄÂð£¿
ÒòΪ¶Ôjs²»ÊìϤ¡£ËùÒÔ×öµÄʱºòÓöµ½ÁËЩÀ ......