Solved

Working example of TNMMSGServ and TNMMsg

Posted on 2000-03-21
9
494 Views
Last Modified: 2008-03-06
Can someone give me a working example of TNMMSGServ and TNMMsg?

Regards,
Morten
0
Comment
Question by:mdrasted
  • 5
  • 4
9 Comments
 
LVL 1

Author Comment

by:mdrasted
ID: 2639284
Hi,

I forgot to say that I want to send a file from one computer to another.

Morten
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2639330
Delphi 5 has a demo in the 'Delphi\Demos\Fastnet\Msg' directory...
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 100 total points
ID: 2639653
I see in one of your other questions that you use Delphi 5 Enterprise so I'll answer this question.

Look for the demo in the 'Program Files\Borland\Delphi5\Demos\Fastnet\Msg' directory. This demo shows how to send messages between 2 apps on different computers. It should be clear enough by itself but if you have additional questions, please ask them.

If you are interested, also take a look at this demo. It's something similar except is uses a server that enables more that 2 clients to connect and talk to each other (like IRC).

http://www5.ewebcity.com/epsylon/download.asp?file=RelayChat.zip
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 1

Author Comment

by:mdrasted
ID: 2639693
What I'm looking for is an example of how to use SendFile and CaptureFile. I need to send a text file across the network.

Morten
0
 
LVL 1

Author Comment

by:mdrasted
ID: 2639837
Hi Epsylon,

Thanks for your help. You didn't exactly answer my question, but I can use it anyway.

Morten
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2640689
Hi, I uploaded a demo that transfers files:

http://www5.ewebcity.com/epsylon/download.asp?file=FileTransfer.zip
0
 
LVL 1

Author Comment

by:mdrasted
ID: 2640748
That's great! Thanks a lot!

I'll pay you a 100 credits for that answer.

Regards,
Morten
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2640873
*Little* warning: this is complicated stuff. I started this demo a while ago but never finished it. It did not transfer the filename. I added that feature today but have not fully tested it.
However the server is able to handle multiple simultanious uploads using threads. I tried it with 2 clients and it passed the test.
0
 
LVL 1

Author Comment

by:mdrasted
ID: 2643526
It works just fine :-)
Thanks again!

Regards,
Morten
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question