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

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

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

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

Use sockets.

Please review fwh\samples\sockserv.prg and sockcli.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

What is the size of the file to send ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post by ShumingWang »

Antonio,
my.exe 4,355,072 --> received file 4,387,247
bas2.bmp 570 --> received file 704

Regards!
Shuming
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

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

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

> That are original FWH source code.

What FWH version ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

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

Antonio Linares
www.fivetechsoft.com
Post Reply