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

CSocket FileTransfer used for

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello!
I ve a problem, since nobody around here ever asked that before. How can I transfer a file like "c:\data.exe" from one Computer to another one?
I heard a lot of CSocket, Csocketfile and CArchive
My problem isn't to get connected to a PC, but to send or recieve data like "c:\data.exe"...
I ve tried a algorithm with CFile, but this one destroyed the "data.exe". So now im very angry about the world wide web, cause there is no solution around here. What a pity.
Can you write some code down here for such a working file transfer?
THANKS! :)
 
Hi

You could also consider using FTP to do this.

You use the function GetFtpConnection of the class
CInternetSession to open a FTP connection with a FTP server.

Now if you really don't want to use FTP, it should work also with CSOcket but I never use it for such purpose and you'll need to write much more code.

Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top