Solved

hello world

Posted on 2004-03-30
6
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 157
When i run adoquery my application freezes 26 210
DBGrid or StringGrid ? 6 136
Automatic field translation delphi 10.2 6 45
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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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