Restored from previous forum. Originally posted by Edy.
This is my code downloading a file to from http server but i keep having this problem and i have include the #include urlmon.h but i keep on having this problem can anyone help???
CString urlAddr = _T("172.16 .156.43/hello.txt");
CString filename = _T("\\My Documents\\album\\try.txt");
const HRESULT hr=URLDownloadCacheToFile(NULL,"172.16.156.43","\\My Documents\\album\\try.txt",0,NULL);
MessageBox( TEXT("URL OK"), TEXT("Load Image"), MB_OK);
If those who know it pls email to me asap THANKS!
Eunice
Embedded Visual c++ Need HELP
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by MrVainSCL.
Hi Edy,
i am not an c/c++ expert but i think your codesnip could be something like following in PB... Between i hope you dont want here any C/C++ help??? This isn´t a C/C++ support forum...
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten
Hi Edy,
i am not an c/c++ expert but i think your codesnip could be something like following in PB... Between i hope you dont want here any C/C++ help??? This isn´t a C/C++ support forum...
Code: Select all
urlAddr.s = "172.16 .156.43/hello.txt"
filename.s = "\\My Documents\\album\\try.txt"
;
; hr = URLDownloadCacheToFile_(NULL,"172.16.156.43","\\My Documents\\album\\try.txt",0,NULL);
;
MessageBox_(0,"URL OK","Load Image", #MB_OK)
End
greetz
MrVainSCL! aka Thorsten
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
Although it looked more like they were posting here for help on C, not converting it to PB (why include a header file in PB). In fact, I'd even say it was a spam harvesting thing (apologies if not), but why would they want the code emailled to them (unless they were not taking part in the forums, which furthers my suspicion that it's not about PB)? And what code? Three lines out of a program won't be much.
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
You do not need the double slashes in PB.Originally posted by MrVainSCL
filename.s = "\\My Documents\\album\\try.txt"
Although it looked more like they were posting here for help on C, not converting it to PB (why include a header file in PB). In fact, I'd even say it was a spam harvesting thing (apologies if not), but why would they want the code emailled to them (unless they were not taking part in the forums, which furthers my suspicion that it's not about PB)? And what code? Three lines out of a program won't be much.
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm