Page 1 of 1

How to: a app transport a file to another app?

PostPosted: Fri Apr 11, 2008 6:58 am
by ShumingWang
Hi,
Two harbour+fwh prg/exe , how to send a file from one app to another app and save as ...
Best regards!
Shuming Wang

PostPosted: Fri Apr 11, 2008 7:21 am
by Antonio Linares
Shuming,

Use sockets.

Please review fwh\samples\sockserv.prg and sockcli.prg

PostPosted: Wed Apr 16, 2008 7:46 am
by ShumingWang
Antonio,
The received file added some connection msgs at the file bof and eof, so the file gets unuseable.
Bof as: 04/16/08 15:33:44: 17 SENDFILE MY.EXE
04/16/08 15:33:44: 8192 MZP
Eof as :04/16/08 15:33:46: writting...
Best Regrads!
Shuming Wang

PostPosted: Wed Apr 16, 2008 8:17 am
by Antonio Linares
Shuming,

What is the size of the file to send ?

PostPosted: Wed Apr 16, 2008 9:23 am
by ShumingWang
Antonio,
my.exe 4,355,072 --> received file 4,387,247
bas2.bmp 570 --> received file 704

Regards!
Shuming

PostPosted: Wed Apr 16, 2008 9:35 am
by Antonio Linares
Shuming,

Please copy here the source code that you have in fwh\source\classes\tsocket.prg method SendData(), thanks

PostPosted: Wed Apr 16, 2008 10:28 am
by ShumingWang
Antonio,
That are orignal FWH source code.
Or you put sockserv.exe, sockcli.exe here to me download and test.
Regards!
Shuming Wang

PostPosted: Wed Apr 16, 2008 11:29 am
by Antonio Linares
Shuming,

> That are original FWH source code.

What FWH version ?

PostPosted: Wed Apr 16, 2008 12:02 pm
by Antonio Linares
Shuming,

Please email me your fwh\source\classes\tsocket.prg, thanks