iddnsresolver demo/examples??

Giganews Newsgroups
Subject: iddnsresolver demo/examples??
Posted by:  Anthony (antho…@n.o.s.p.a.m.caltec.co.uk)
Date: Thu, 30 Oct 2003

argh! help!?

Is it just me or has the DNS resolver demo got major issues? like it wont
compile. at all. infact the code in the demo doesnt appear to relate to the
actual IdDNSResolver object at all?! - Im not even sure the demo is
finished?

All I want is a simple example of how to use the iddnsresolver object (in
indy 9) to get the mx records (priority and host) for a given domain. It
should be simple right? but Iv wasted days on it so far!

TIA.

I get the following errors for the demo (from I9D6_Demos_24Nov02) :
[Error] fmDNSResolverMainU.pas(197): Incompatible types: 'TQueryRecordTypes'
and 'Integer'
[Error] fmDNSResolverMainU.pas(200): Incompatible types: 'String' and
'TResultRecord'
[Error] fmDNSResolverMainU.pas(202): ':=' expected but ':' found
[Error] fmDNSResolverMainU.pas(203): Expression expected but 'BEGIN' found
[Error] fmDNSResolverMainU.pas(205): Record, object or class type required
[Error] fmDNSResolverMainU.pas(205): 'END' expected but ')' found
[Error] fmDNSResolverMainU.pas(207): ':=' expected but ':' found
[Error] fmDNSResolverMainU.pas(208): Expression expected but 'BEGIN' found
[Error] fmDNSResolverMainU.pas(210): Record, object or class type required
[Error] fmDNSResolverMainU.pas(210): 'END' expected but ')' found
[Error] fmDNSResolverMainU.pas(212): Declaration expected but identifier
'qtMX' found
[Error] fmDNSResolverMainU.pas(214): Undeclared identifier: 'memoResult'
[Error] fmDNSResolverMainU.pas(214): Missing operator or semicolon
[Error] fmDNSResolverMainU.pas(214): Incompatible types
[Error] fmDNSResolverMainU.pas(215): Missing operator or semicolon
[Error] fmDNSResolverMainU.pas(215): Undeclared identifier: 'QueryResult'
[Error] fmDNSResolverMainU.pas(215): Undeclared identifier: 'i'
[Error] fmDNSResolverMainU.pas(215): Missing operator or semicolon
[Error] fmDNSResolverMainU.pas(217): '.' expected but ';' found
[Error] fmDNSResolverMainU.pas(219): Identifier redeclared: 'Finalization'
[Error] fmDNSResolverMainU.pas(220): Missing operator or semicolon
[Error] fmDNSResolverMainU.pas(220): Incompatible types
[Error] fmDNSResolverMainU.pas(221): Missing operator or semicolon
[Error] fmDNSResolverMainU.pas(221): Undeclared identifier: 'QueryResult'
[Error] fmDNSResolverMainU.pas(221): ')' expected but identifier 'RData'
found
[Error] fmDNSResolverMainU.pas(221): 'END' expected but ')' found
[Warning] fmDNSResolverMainU.pas(228): Text after final 'END.' - ignored by
compiler
[Error] fmDNSResolverMainU.pas(46): Unsatisfied forward or external
declaration: 'TForm1.rbRecordClick'
[Error] fmDNSResolverMainU.pas(47): Unsatisfied forward or external
declaration: 'TForm1.rbAllClick'
[Error] fmDNSResolverMainU.pas(48): Unsatisfied forward or external
declaration: 'TForm1.rbZoneClick'
[Error] fmDNSResolverMainU.pas(49): Unsatisfied forward or external
declaration: 'TForm1.cbAClick'
[Error] fmDNSResolverMainU.pas(50): Unsatisfied forward or external
declaration: 'TForm1.FormActivate'
[Fatal Error] DNSResolver.dpr(5): Could not compile used unit
'fmDNSResolverMainU.pas'

Replies