Вниз
Скачать: CL | DM;

Как с помощью TIdTime и TIdSNTP синхронизировать время?   Найти похожие ветки 

← →
Kinder   (2003-11-09 00:38) [0]

сабж :)


← →
Anarki   (2003-11-09 21:11) [1]

Мне тож это интересно. У меня при подключении прога виснет и никуда не коннектится.
unit Main;

interface

uses
Windows, Messages, Graphics, Controls, Forms, Dialogs, StdCtrls,
SysUtils, Classes, IdComponent, IdTCPConnection, IdTCPClient, IdTime,
IdBaseComponent;

type
TfrmTimeDemo = class(TForm)
lblTimeServer: TLabel;
IdDemoTime: TIdTime;
edtTimeResult: TEdit;
Label1: TLabel;
btnGetTime: TButton;
cmboTimeServer: TComboBox;
procedure btnGetTimeClick(Sender: TObject);
private
public
end;

var
frmTimeDemo: TfrmTimeDemo;

implementation
{$R *.DFM}

// No real code required - all functionality built into component !
procedure TfrmTimeDemo.btnGetTimeClick(Sender: TObject);
begin
IdDemoTime.Host := cmboTimeServer.Text;
{ After setting Host, this is all you have to get the time from a time
server. We do the rest. }
edtTimeResult.Text := DateTimeToStr ( IdDemoTime.DateTime );
end;

end.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.029 c
9-25178
Дмитрий К.
2003-06-20 16:55
2004.01.09
Сохранение изображения текущей сцены OpenGL


14-25505
vajo
2003-12-16 16:58
2004.01.09
Delphi + Реестр


3-25206
Morfey
2003-12-11 20:02
2004.01.09
MySQL


1-25286
kotel
2003-12-25 16:53
2004.01.09
Панель инструментов


1-25357
Vogus
2003-12-23 09:51
2004.01.09
Поделитесь некоторыми принципами при создании CGI для Apache




   Наверх