代码如下:void CTestWebDlg::OnButtonTest() 
{
char * pbuf;
int nbuflen, n;
DWORD dwBytesRead, dwIndex = 0, dwLength = 32;
char szResponseCode[32] = { 0 };
HINTERNET hSession = NULL, hConnect = NULL, hRequest = NULL;
char buf[512];
char * pszuri = "/"; /* construct connection */
hSession = InternetOpen( "TestClient", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
if(!hSession)
{
return;
}
hConnect = InternetConnect(hSession, "www.csdn.net", 80, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0);
if(!hConnect)
{
return;
} hRequest = HttpOpenRequest(hConnect, "GET", pszuri, 
NULL, NULL, (const char * *)NULL, INTERNET_FLAG_NO_CACHE_WRITE, 0); if(!hRequest)
{
return;
}

/* send request to server */
if(!HttpSendRequest(hRequest, NULL, 0, NULL, 0) ||
!HttpEndRequest(hRequest, NULL, 0, 0))
{
return;
}

/* get response code */
if(!HttpQueryInfo(hRequest, HTTP_QUERY_STATUS_CODE, szResponseCode, &dwLength, &dwIndex))
{
return;
}
if(strcmp(szResponseCode, "200") != 0)
{
return;
} /* read returned data */
n = 0;
dwBytesRead = 0;
pbuf = (char *)malloc(1024);
nbuflen = 1024; do {
if(InternetReadFile(hRequest, buf, 512, &dwBytesRead))
{
if(dwBytesRead > 0)
{
if((int)(n + dwBytesRead) >= nbuflen)
{
pbuf = (char *)realloc(pbuf, nbuflen + 1024);
if(pbuf == NULL)
{
return;
}
nbuflen += 1024;
} memcpy(pbuf + n, buf, dwBytesRead);
n += dwBytesRead;
}
}
else
{
return;
}
} while(dwBytesRead > 0);

  pbuf[n] = 0;


/////////do something///////////////

free(pbuf); /* close internet connection */
InternetCloseHandle(hRequest);  /***************************/
InternetCloseHandle(hConnect);
InternetCloseHandle(hSession); return;
}调试时,执行到/***************************/标记大那一行,总是进入断点,但我没有设置什么断点,call stack如下:
NTDLL! 7c921230()
NTDLL! 7c97db9c()
NTDLL! 7c98cd11()
NTDLL! 7c98df66()
NTDLL! 7c96a5d0()
NTDLL! 7c9468ad()
KERNEL32! 7c809988()
WININET! 766965b7()
WININET! 76695fd6()
WININET! 76696321()
WININET! 76696283()
CTestWebDlg::OnButtonTest() line 264 + 12 bytes请高手指教指教,谢谢