| View previous topic :: View next topic |
| Author |
Message |
Koger Guest
|
Posted: Tue Oct 21, 2003 8:26 am Post subject: WS2Detect - Indy detect Winsock 2 |
|
|
Hi
I have downloaded this code, but it reported on a Windows 98 machine that it
winsock 2 wasn't available. This most be a bug right?
Is this dll still supported if it ever have been, it's a little difficult to
find any information about it.
|
|
| Back to top |
|
 |
Koger Guest
|
Posted: Tue Oct 21, 2003 9:00 am Post subject: Re: WS2Detect - Indy detect Winsock 2 |
|
|
If I should check for Winsock 2, isn't it enough to see if WS2_32.DLL is
available ?
If anybody is interrested I made this function for inno setup
function WinSock2Installed: Boolean;
var
hLib: LongInt;
ErrorCode: Integer;
begin
hLib := LoadDLL('WS2_32.DLL', ErrorCode);
if hLib <> 0 then
FreeDLL(hLib);
Result := hLib <> 0;
end;
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Tue Oct 21, 2003 9:39 am Post subject: Re: WS2Detect - Indy detect Winsock 2 |
|
|
"Koger" <koger (AT) iname (DOT) com> wrote
| Quote: | If I should check for Winsock 2, isn't it enough to see if WS2_32.DLL is
available ?
|
WS2_32 was available all the W98's I have lying around.
Rgds,
Martin
|
|
| Back to top |
|
 |
Chad Z. Hower aka Kudzu Guest
|
Posted: Tue Oct 21, 2003 11:06 am Post subject: Re: WS2Detect - Indy detect Winsock 2 |
|
|
"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote in news:3f94fe5e$1
@newsgroups.borland.com:
| Quote: | WS2_32 was available all the W98's I have lying around.
|
IIRC Win98 comes with Winsock 2. Only Win 95 is without it and can easily be
upgraded.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Qualified help FAST with Indy Experts Support
from the experts themselves:
http://www.atozed.com/indy/experts/support.html
ELKNews - Get your free copy at http://www.atozedsoftware.com
|
|
| Back to top |
|
 |
Koger Guest
|
Posted: Tue Oct 21, 2003 12:21 pm Post subject: Re: WS2Detect - Indy detect Winsock 2 |
|
|
OK, I think I didn't make myself clear enough :)
Somewhere very deep in the indy project are there a small dll file called
WS2Detect.
AFAIK it was never released with the official (or unofficial?) release.
So I don't know if this dll is still supported, if it's it doesn't work
probably, but I guest it isn't.
So my question is how do I detect if winsock 2 is installed.
Can I just check if I can load the WS2_32.DLL library and assume everything
is OK if I can do that ?
Thank you
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Oct 21, 2003 6:59 pm Post subject: Re: WS2Detect - Indy detect Winsock 2 |
|
|
"Koger" <koger (AT) iname (DOT) com> wrote
| Quote: | Somewhere very deep in the indy project are there
a small dll file called WS2Detect.
|
Not anymore, there isn't. Indy natively detects WinSock2 now, from within
the IdWinSock2.pas unit.
| Quote: | AFAIK it was never released with the official (or unofficial?) release.
|
I have never known Indy to actually use WS2Detect in the first place.
| Quote: | Can I just check if I can load the WS2_32.DLL library and
assume everything is OK if I can do that ?
|
Asside from detecting the presense of the file, you should also actually
load the DLL to make sure that it even starts up correctly.
Gambit
|
|
| Back to top |
|
 |
|