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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert mfc to c++ builder

Status
Not open for further replies.

tid

Programmer
Oct 22, 2003
23
IL
hi,
There are a lot of code and tutorials on the internet but the problem is that there are written on mfc.
i tried to convert one of them to c++ builder but there are a lot of feature that doesn't work (builder doesn't support them). i didn't find a good tutorilas on what do i need to do in order to convert.
Notice : it didn't help me to set that compiler option to support mfc.
Thanks.
 
Uh huh, just like I tell my friends.
Post some code, lets see if I can help you out!

Bug in your code! Need a quick fix fast!
Need Help from a programming expert! Click on the site below. We're here to help!
 
Code:
#include <windows.h>
#pragma comment( lib, "urlmon.lib" ) 
bool DownloadFile(char *URL,char * LocalFilename) 
{
 long lngRetVal;
 lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, NULL);
 if (lngRetVal == 0)
  return true;
 else
  return false;
}
int main()
{
DownloadFile("[URL unfurl="true"]http://pcboy.co.il/images/logo.jpg","logo.jpg");[/URL]
return 0;
}

This looks simple but c++ builder doesn't have the urlmon.lib.
does it have something else similar to perform this kind of action ?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top