I am using VS-2010. I am passing a vector of string to a function and this function is intend to download images from a list of urls which stored in a vector of strings
void fun::update(vector<std::string>& list_url)
{
vector<std::string> res ;
HRESULT hr;
for(int i=0;i<(unsigned int)list_url.size();i++)
{
res.push_back(list_url[i].substr( list_url[i].find_last_of("/") + 1 ));
LPCTSTR Url = _T(list_url[i]);
LPCTSTR File = _T(res[i]);
hr = URLDownloadToFile(0, Url,File , 0, 0);
}
}
but this function is showing error that
fun.cpp(29): error C2065: 'Llist_url' : undeclared identifier 1>fun.cpp(30): error C2065: 'Lres' : undeclared identifier