Re: DNS Lookup
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Apr 28, 2000
- 607 views
On Fri, 28 Apr 2000 21:33:10 +0100, Thomas Parslow (PatRat)
<patrat at INAME.COM> wrote:
>constant WSOCK32 = open_dll("wsock32.dll")
>atom gethostbyname
>gethostbyname = define_c_func(WSOCK32,"gethostbyname",{C_LONG},C_LONG)
>memDNS = allocate_string("www.infoseek.com")
>? c_func(dllgethostbyname,{memDNS})
>free(memDNS)
>
>? c_func(dllgethostbyname,{memDNS})
shouldn't this be c_func(gethostbyname,{memDNS})

