Solved

hello world

Posted on 2004-03-30
6
225 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:Greg Rowland
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reconfigure Delphi Install? 2 64
Find and Replace Stream with 0s 8 71
How to insert .png images to TClientDataSet .cds file? 2 67
delphi popmenu non latine charcters 3 30
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 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