Re: Getting an IP Address from a domain name

2006-07-07 Thread Jerry Clancy
Ping the domain. That domain, btw, returns 65.125.108.20 from DNS and 
apparently wasn't online when pinged.

Note that the IP could be different at different times, depending 
upon whether the host is using DHCP or dedicated IPs.

Jerry


At 06:03 PM 7/6/2006, you wrote:

Hi All,

I have a project that I thought would be a snap and it has turned out to be
a pain.  I need to get the Host IP from a domain name, IE -
www.skpontiac.com to 12.163.44.20

Anyone have any tools or suggestion, I would greatly appreciate it.

So far I have tried Indy 9.0 idDNSResolver with no success.

Steve Gaskin


___
Delphi mailing list - Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi


Re: Getting an IP Address from a domain name

2006-07-07 Thread Arno Garrels
Hello Steve,

 to be a pain.  I need to get the Host IP from a domain name, IE -
 www.skpontiac.com to 12.163.44.20

I don't know how it is done in Indy. But in ICS it is as simple as
dropping a TWSocket on the form and writing a few lines.

procedure TForm1.Button1Click(Sender: TObject);
begin
WSocket1.OnDnsLookupDone := WSocket1DnsLookupDone;
WSocket1.DnsLookup('www.skpontiac.com');
end;

procedure TForm1.WSocket1DnsLookupDone(Sender: TObject; ErrCode: Word);
begin
if ErrCode = 0 then
Memo1.Lines.AddStrings(WSocket1.DnsResultList)
else
Memo1.Lines.Add(WSocket.WSocketErrorDesc(ErrCode))
end;
 
The ICS (Internet Component Suite, freeware) is available on the
partner CD or downloadable here http://www.overbyte.be.

Arno Garrels

___
Delphi mailing list - Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi


disable keyboard shortcuts temporary

2006-07-07 Thread Wilfried Mestdagh
Hello,

I have a main form with mainmenu ans shortut keys to several items. But
when I create another form ans show it modal, and I Hide the mainform
then the shortcuts are all working in the new form. If I dont Hide the
main form then the shortcuts are disabled.

For example:

procedure TMain.Lijst1Click(Sender: TObject);
var
   ShowAll: TShowAll;
begin
   ShowAll := TShowAll.Create(nil);
   try
  Hide;
  ShowAll.ShowModal;
   finally
  Show;
  ShowAll.Free;
   end;
end;

In the TShowAll form, all shortcuts of the main form (the one with this
code) can execute. If I put Hide; in comment then not.

How to prevent this ?

---
Rgds, Wilfried
http://www.mestdagh.biz

__
Delphi-Talk mailing list - Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk


Re: disable keyboard shortcuts temporary

2006-07-07 Thread Kraven
You need to use Global HotKeys search this on Torry.net and you will
find a component called fisHotKey which will allow global hotkeys to
function. This is the only way I can think of based on the description you
sent.

Regards,
Simon

- Original Message - 
From: Wilfried Mestdagh [EMAIL PROTECTED]
To: Delphi-Talk Discussion List delphi-talk@elists.org
Sent: Friday, July 07, 2006 1:59 PM
Subject: disable keyboard shortcuts temporary


 Hello,

 I have a main form with mainmenu ans shortut keys to several items. But
 when I create another form ans show it modal, and I Hide the mainform
 then the shortcuts are all working in the new form. If I dont Hide the
 main form then the shortcuts are disabled.

 For example:

 procedure TMain.Lijst1Click(Sender: TObject);
 var
ShowAll: TShowAll;
 begin
ShowAll := TShowAll.Create(nil);
try
   Hide;
   ShowAll.ShowModal;
finally
   Show;
   ShowAll.Free;
end;
 end;

 In the TShowAll form, all shortcuts of the main form (the one with this
 code) can execute. If I put Hide; in comment then not.

 How to prevent this ?

 ---
 Rgds, Wilfried
 http://www.mestdagh.biz

 __
 Delphi-Talk mailing list - Delphi-Talk@elists.org
 http://www.elists.org/mailman/listinfo/delphi-talk

__
Delphi-Talk mailing list - Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk


Re: DNSBL checking from Delphi

2006-07-07 Thread Eddie Shipman
Would you mind sharing with the community?

E.


--- Kraven [EMAIL PROTECTED] wrote:

 Peter,
 I know how to get the sender of an e-mail using the SAKMail component kit
 (which I can give you a link to if you need it)
 I'm going to experiment with it now and see if I can write a function for
 you to cross-reference each incoming e-mail with a black-list based on a
 website I will send you whatever I come up with.
 
 Regards,
 Simon J Stuart
 
 - Original Message - 
 From: Peter Laman [EMAIL PROTECTED]
 To: Delphi Talk Delphi-Talk@elists.org
 Sent: Thursday, June 29, 2006 9:14 AM
 Subject: DNSBL checking from Delphi
 
 
  Hi,
 
  Does anybody know how to programmatically check the sender of an e-mail
  against a DNSBL blacklist (such as spamcop)?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
__
Delphi-Talk mailing list - Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk


Re: DNSBL checking from Delphi

2006-07-07 Thread Eddie Shipman
A quick google search revealed this info:

http://www.ahbl.org/
http://www.openrbl.org
http://www.dnsstuff.com/
http://www.kloth.net/services/dnsbl.php

allow you to test a host to see whether it is listed 
by a number of popular DNSBLs


--- Kraven [EMAIL PROTECTED] wrote:

 Eddie and Peter:
 I hit a bit of a snag with this the DNSBL listings sites I found all
 required payment subscriptions could either of you suggest one which has
 a public access list (for free) or possibly one with a web-based search
 facility?
 
 This will help me considerably since I'm not going to pay subscription to
 one of these DNSBL hosts which I will never end up using again.
 
 Regards,
 Simon
 - Original Message - 
 From: Eddie Shipman [EMAIL PROTECTED]
 To: delphi-talk@elists.org
 Sent: Friday, July 07, 2006 2:38 PM
 Subject: Re: DNSBL checking from Delphi
 
 
  Would you mind sharing with the community?
 
  E.
 
 
  --- Kraven [EMAIL PROTECTED] wrote:
 
   Peter,
   I know how to get the sender of an e-mail using the SAKMail component
 kit
   (which I can give you a link to if you need it)
   I'm going to experiment with it now and see if I can write a function
 for
   you to cross-reference each incoming e-mail with a black-list based on a
   website I will send you whatever I come up with.
  
   Regards,
   Simon J Stuart
  
   - Original Message - 
   From: Peter Laman [EMAIL PROTECTED]
   To: Delphi Talk Delphi-Talk@elists.org
   Sent: Thursday, June 29, 2006 9:14 AM
   Subject: DNSBL checking from Delphi
  
  
Hi,
   
Does anybody know how to programmatically check the sender of an
 e-mail
against a DNSBL blacklist (such as spamcop)?
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
  __
  Delphi-Talk mailing list - Delphi-Talk@elists.org
  http://www.elists.org/mailman/listinfo/delphi-talk
 
 __
 Delphi-Talk mailing list - Delphi-Talk@elists.org
 http://www.elists.org/mailman/listinfo/delphi-talk
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
__
Delphi-Talk mailing list - Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk