FTP Upload / Download
Hi !
I want to build a class for handling file upload and download. I looked up in my copy of Programming Windows to get the example program for the Windows internet functions. Pretty useful, much easier than implementing the FTP protocoll yourself. Put the provided example doesn''t work. Even the call to create an Internet session fails while connected to the internet.
My question: Does anyone have working code for FTP file upload / download ? Code that is using the internet library is prefered, but good ol'' socket is also fine
Thanx
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
This code fails all the time:
// Open an internet session
hIntSession = InternetOpen (szAppName, INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, INTERNET_FLAG_ASYNC) ;
if (hIntSession == NULL)
{
wsprintf (szBuffer, TEXT ("InternetOpen error %i"), GetLastError ()) ;
ButtonSwitch (hwndStatus, hwndButton, szBuffer) ;
_endthread () ;
}
This is from the example, why doesn''t it work on my computer ?
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
// Open an internet session
hIntSession = InternetOpen (szAppName, INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, INTERNET_FLAG_ASYNC) ;
if (hIntSession == NULL)
{
wsprintf (szBuffer, TEXT ("InternetOpen error %i"), GetLastError ()) ;
ButtonSwitch (hwndStatus, hwndButton, szBuffer) ;
_endthread () ;
}
This is from the example, why doesn''t it work on my computer ?
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
ok, found it !
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
uh, given that no one answered, probably no one knew. So maybe you might want to share with us ?
-----------------------------Sancte Isidore ora pro nobis !
That would be very useful
-Agent1
Operator: You have a telegram.
Encrypted Transmission from Agent1, sent Wed Sep 6, 2000 7:38 PM:
Agent1: *Speeds through section on Message Loops*
Agent1: Soon I'll be using Property Sheets! :)
Byte Me: *been using them since he was a wee lad*
[art]: Take it out, then shove it in a day or two.
[art]: *Operates on his brains.
-Agent1
Operator: You have a telegram.
Encrypted Transmission from Agent1, sent Wed Sep 6, 2000 7:38 PM:
Agent1: *Speeds through section on Message Loops*
Agent1: Soon I'll be using Property Sheets! :)
Byte Me: *been using them since he was a wee lad*
[art]: Take it out, then shove it in a day or two.
[art]: *Operates on his brains.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement