为什么DLL一联网就崩溃?谁能解答下?
CString doGet(CString href)
{
CString httpsource="";
CInternetSession session1(NULL,0);
CHttpFile* pHTTPFile=NULL;
try{
pHTTPFile=(CHttpFile*)session1.OpenURL(href);
}catch(CInternetException)
{
pHTTPFile=NULL;
}
if(pHTTPFile)
{
CString text;
for(int i=0;pHTTPFile->ReadString(text);i++)
{
httpsource=httpsource+text;
}
pHTTPFile->Close();
delete pHTTPFile;
}else
{
}
return httpsource;
}
DLL创建一个线程去运行CString httpsource=doGet("
023K9s2c8@1M7q4)9K6b7g2)9J5c8W2)9J5c8Y4N6%4N6#2)9J5k6h3u0S2K9h3c8#2i4K6u0W2j5$3!0E0");直接就崩溃了,是什么原因呢?
[培训]科锐逆向工程师培训第53期2025年7月8日开班!