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

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

Postby ShumingWang » Fri Apr 11, 2008 6:58 am

Hi,
Two harbour+fwh prg/exe , how to send a file from one app to another app and save as ...
Best regards!
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Fri Apr 11, 2008 7:21 am

Shuming,

Use sockets.

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

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

Postby ShumingWang » Wed Apr 16, 2008 7:46 am

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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Wed Apr 16, 2008 8:17 am

Shuming,

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

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

Postby ShumingWang » Wed Apr 16, 2008 9:23 am

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

Regards!
Shuming
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Wed Apr 16, 2008 9:35 am

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

Postby ShumingWang » Wed Apr 16, 2008 10:28 am

Antonio,
That are orignal FWH source code.
Or you put sockserv.exe, sockcli.exe here to me download and test.
Regards!
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Wed Apr 16, 2008 11:29 am

Shuming,

> That are original FWH source code.

What FWH version ?
regards, saludos

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

Postby Antonio Linares » Wed Apr 16, 2008 12:02 pm

Shuming,

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: dutch, wilsongamboa and 80 guests