🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4052

Re: Problem with TIdTime

#4052
From: Jerry Xiao
Date: Fri, 15 Apr 2005 07:45
29 lines
2056 bytes
>There is *zero* difference between the two.
but i get different result.

the program is indy's demo.
i build it in CB6,it run OK.
i upgrade indy to 9.0.18,it can't get time,first it connect to NULL,next it connect localhost,then i get error #10061,but it didn't connect the server i select in the combox.

i past the script.
//--------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Main.h"
//--------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TfrmTimeDemo *frmTimeDemo;
//--------------------------------------------------------------
__fastcall TfrmTimeDemo::TfrmTimeDemo(TComponent* Owner)
        : TForm(Owner)
{
}
//--------------------------------------------------------------
void __fastcall TfrmTimeDemo::btnGetTimeClick(TObject *Sender)
{
     IdDemoTime->Host = cmboTimeServer->Text;
     edtTimeResult->Text = DateTimeToStr(IdDemoTime->DateTime);
}
//--------------------------------------------------------------
Technical Details
Message-ID: <425f62f7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <425b1b4c@newsgroups.borland.com> <425b269b$1@newsgroups.borland.com> <425b2be5$1@newsgroups.borland.com> <425b6551$1@newsgroups.borland.com> <425f1490$1@newsgroups.borland.com> <425f4f35$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d8d96485ad860d2b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jerry Xiao" <blackart0@sina.com.cn>
Sender: "Jerry Xiao" <blackart0@sina.com.cn>
Reply-To: "Jerry Xiao" <blackart0@sina.com.cn>
Subject: Re: Problem with TIdTime
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 61.181.209.200     
References: <425b1b4c@newsgroups.borland.com> <425b269b$1@newsgroups.borland.com> <425b2be5$1@newsgroups.borland.com> <425b6551$1@newsgroups.borland.com> <425f1490$1@newsgroups.borland.com> <425f4f35$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <425f62f7$1@newsgroups.borland.com>
Date: 14 Apr 2005 23:45:11 -0800
X-Trace: newsgroups.borland.com 1113547511 207.105.83.66 (14 Apr 2005 23:45:11 -0800)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail