Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Jesper
Fri, 09 Dec 2005 20:04
Indy TCP
Author: Jesper
Date: Fri, 09 Dec 2005 20:04
Date: Fri, 09 Dec 2005 20:04
25 lines
1785 bytes
1785 bytes
Hi! I just want to say that i'm a newbie when it commes to programming.
Having said that, I have some questions.
I'm writing my own FileTransfer program, using the "IdTCPClient" and
"IdTCPServer" components in BCB6. I know how to create a connection to the
'other side', but I can't send any files.
Here's the code:
IdTCPClient1->BoundIP = Edit1->Text; //The IP of
the other computer
IdTCPClient1->Port = Edit2->Text.ToIntDef(0); //The Port is
set to 3000, but can be changed
IdTCPClient1->Connect();
IdTCPClient1->WriteFile("test\\test.txt");
if(IdTCPClient1->Connected() == true)
Label3->Caption ="Connected to the other side";
My problem is IdTCPClient1->WriteFile.
If you look at the HELP text, all you get is: '' function WriteFile(AFile:
String; const AEnableTransferFile: boolean): cardinal; virtual; ''
I have no idea how to continue.
/J
Re: Indy TCP
Author: Remy Lebeau (TeamB)
Date: Fri, 09 Dec 2005 22:23
Date: Fri, 09 Dec 2005 22:23
16 lines
1342 bytes
1342 bytes
"Jesper" <jesper@safholm.com> wrote in message news:4399e31d@newsgroups.borland.com... > I'm writing my own FileTransfer program <snip> Please do not cross-post. It is against Borland's newsgroup guidelines (http://info.borland.com/newsgroups). Only post to the single most appropriate group. Your question has been answered in the .internet.socket newsgroup. This is not a Web issue. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads