int GetWebCon(char *url,char * wCon)
{
CInternetSession httpSession;
CInternetFile* htmlFile = (CInternetFile*) httpSession.OpenURL(url);
CString content; while (htmlFile->ReadString(content))
{
content+=content;
}
        //AfxMessageBox(content, 0, 0);
(CString)(*wCon)=content;
htmlFile->Close();
httpSession.Close();
    
return 0;
}有点晕,想用VC写一个dll,通过这个dll获取网页内容。结果出了一堆问题。主要是上面3处。第一处提示"debug assert failed".
第二处发现content的内容越加越少。第三个嘛,就是不知道怎么把content的内容传给调用函数。