error C2065: undeclared identifier
Posted
by karikari
on Stack Overflow
See other posts from Stack Overflow
or by karikari
Published on 2010-05-04T05:04:28Z
Indexed on
2010/05/04
5:08 UTC
Read the original article
Hit count: 342
visual-studio
|c++
Currently, I have this function inside my other cpp file:
UINT32 functionHtml(const wchar_t *url)
{
WinHttpClient client(url);
client.SendHttpRequest();
wstring httpResponseHeader = client.GetHttpResponseHeader();
wstring httpResponse = client.GetHttpResponse();
writeToLog(httpResponse.c_str());
return 0;
}
I have another cpp file, and I would like to execute the stuff inside the above file. Here is the code for the other file:
HRESULT CButtonDemoBHO::onDocumentComplete(IDispatch *pDisp, VARIANT *vUrl){
ATLTRACE("CButtonDemoBHO::onDocumentComplete %S\n", vUrl->bstrVal);
// <---- i would like to call funtionHTML here or ..
if (isMainFrame(pDisp)){
m_normalPageLoad=false;
// <---- here..
MessageBox(m_hWnd, L"Main Document has completed loading", L"Document Complete", MB_OK);
return S_OK;
}
return S_OK;
}
I got the error C2065: 'url' : undeclared identifier. Need help.
© Stack Overflow or respective owner