Solved

hello world

Posted on 2004-03-30
6
223 Views
Last Modified: 2010-10-05
I suppose you know this easy 1st delphi example.
(on btnclick showmessage bla,bla,bla...)
How do you make this app. client-server?
For learning sake...
0
Comment
Question by:Bosanac
6 Comments
 
LVL 4

Expert Comment

by:SurferJoe
ID: 10718854
Put it on a server:)

Really what do you want to do?
0
 
LVL 17

Expert Comment

by:mokule
ID: 10718882
procedure TForm1.Button1Click(Sender: TObject);
begin
  if MessageDlg('Welcome to my Delphi application.  Exit now?',
    mtConfirmation, [mbYes, mbNo], 0, mbYes) = mrYes then
  begin
    MessageDlg('Exiting the Delphi application.', mtInformation,
      [mbOk], 0, mbOk);
    Close;
  end;

0
 
LVL 17

Expert Comment

by:mokule
ID: 10718902
var
  FileToFind: string;
begin
  FileToFind := FileSearch(Edit1.Text, GetCurrentDir);
  if FileToFind = '' then
    ShowMessage('Couldn''t find ' + Edit1.Text + '.')
  else
    ShowMessage('Found ' + FileToFind + '.');
end;
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 11

Expert Comment

by:shaneholmes
ID: 10718937
Take a look at the TServerSocket & TClientSocket components

Shane
0
 

Accepted Solution

by:
d1kGroup earned 25 total points
ID: 10719181
better take a look of indy components (TIdTCPServer and TIdTCPClient). you can find a lot of examples on http://www.indyproject.org
0
 
LVL 17

Expert Comment

by:geobul
ID: 10723175
What is the server part supposed to be doing?To send a string 'Hello world!' to the client upon request perhaps? I can't understand the question ...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

831 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