linux上curl -s 网站名,出来的就是那个网站的html语言,然后你复制粘贴到一个html文件里就ok了。如果没有curl工具,自己百度下载一个。
char buff[1024*20+1];
typedef int (WINAPI ICEPUB_OPENURL)(char *currentUrlString,char *strHtmlText,int textMaxLen,char *strProxy);
ICEPUB_OPENURL *icePub_openUrl = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_openUrl =(ICEPUB_OPENURL *)GetProcAddress(hDLLDrv,"icePub_openUrl");
}
if(icePub_openUrl)
{
icePub_openUrl("http://www.baidu.com",buff,1024*20,"");
}
if(hDLLDrv)
FreeLibrary(hDLLDrv);
AfxMessageBox(buff);