FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to: a app transport a file to another app?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to: a app transport a file to another app?
Posted: Fri Apr 11, 2008 06: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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to: a app transport a file to another app?
Posted: Fri Apr 11, 2008 07:21 AM

Shuming,

Use sockets.

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to: a app transport a file to another app?
Posted: Wed Apr 16, 2008 07: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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to: a app transport a file to another app?
Posted: Wed Apr 16, 2008 08:17 AM

Shuming,

What is the size of the file to send ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to: a app transport a file to another app?
Posted: Wed Apr 16, 2008 09:23 AM

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

Regards!
Shuming

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to: a app transport a file to another app?
Posted: Wed Apr 16, 2008 09: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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to: a app transport a file to another app?
Posted: 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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to: a app transport a file to another app?
Posted: Wed Apr 16, 2008 11:29 AM

Shuming,

> That are original FWH source code.

What FWH version ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to: a app transport a file to another app?
Posted: 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

Continue the discussion