Article View: borland.public.cppbuilder.internet.socket
Article #2576Re: Indy 9 and SysLog
From: Paul
Date: Sat, 11 Mar 2006 17:19
Date: Sat, 11 Mar 2006 17:19
50 lines
2693 bytes
2693 bytes
An Update: I tried run time creation of the previously mentioned code, a
rebuild of Indy, and various other attempts, no joy.
However, the follwoing code does work. So there isn't anything major wrong
with the Indy build and the SysLog components, but must be something
specifically wrong with the SendMessage methods. Has anyone come across
this before?
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TIdSysLog * c = new TIdSysLog(NULL);
c->Host = "127.0.0.1";
c->ReceiveTimeout = 15000;
c->Active = true;
TIdSysLogMessage * t = new TIdSysLogMessage(NULL);
t->Msg->Content = "Hi Server";
t->Severity = slDebug;
t->Facility = sfUserLevel;
t->SendToHost("127.0.0.1");
delete t;
delete c;
}
"Paul" <plmacca@clara.co.uk> wrote in message
news:4412d1f1$1@newsgroups.borland.com...
> Hi,
>
> I've built and included Indy9 (as far as I can tell). I've made a couple
> of small apps to test the build and components and I get the following
> error with SysLog (Client) link:
>
> [Linker Error] Unresolved external '__fastcall
> Idsyslog::TIdSysLog::SendMessageA(const Idsyslogmessage::TIdSysLogMessage
> *, const bool)' referenced from D:\VSS\SYSLOGSERVER\CLIENTFORM.OBJ
> [Linker Error] Unresolved external '__fastcall
> Idsyslog::TIdSysLog::SendMessageA(const System::AnsiString, const
> Idsyslogmessage::TIdSyslogFacility, const
> Idsyslogmessage::TIdSyslogSeverity)' referenced from
> D:\VSS\SYSLOGSERVER\CLIENTFORM.OBJ
>
> Any ideas? (test code below). I'm a bit confused why the method in the
> header is "SendMessage", the linkers says SendMessageA, and it compiles
> with either (and makes no difference to the linker error).
>
> Regards
>
> Paul
Technical Details
Message-ID:
<4413068d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4412d1f1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ce70b488f13a23ed X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul" <plmacca@clara.co.uk> Newsgroups: borland.public.cppbuilder.internet.socket References: <4412d1f1$1@newsgroups.borland.com> Subject: Re: Indy 9 and SysLog Date: Sat, 11 Mar 2006 17:19:19 -0000 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 86.142.237.18 Message-ID: <4413068d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142097549 86.142.237.18 (11 Mar 2006 09:19:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail