Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URLDownloadToFile not working

Status
Not open for further replies.

thegame8311

Technical User
Jan 6, 2012
133
0
0
US
I know I have come with a question related to this before, but now it seem to have a problem when I make the release build in VS 2010.

The following code line reports 'Error: argument of type "LPCSTR" is incompatible with parameter of type "LPCWSTR", it works in debug mode as seen below just not in release mode:

Code:
HRESULT hr = URLDownloadToFile(NULL, (LPCSTR)iplink.c_str(), (LPCSTR)"Test7.txt", 0, NULL);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top