Page 1 of 1

Posted: Sat Jan 04, 2003 3:00 am
by BackupUser
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

Posted: Sat Jan 04, 2003 4:04 am
by BackupUser
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... :wink:

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
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten

Posted: Sat Jan 04, 2003 2:34 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.
Originally posted by MrVainSCL
filename.s = "\\My Documents\\album\\try.txt"
You do not need the double slashes in PB.

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)

Posted: Sat Jan 04, 2003 5:41 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

right tinman,
i was a bit wondered too... but we try to help where we can :wink:


PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten