Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FreeAddrInfo Error With ATL WebServices

8 views
Skip to first unread message

Articulate

unread,
Jan 4, 2006, 10:16:02 PM1/4/06
to
I am having an error every time I attempt to launch an application created
with VS2005/VC++ that uses ATL web service calls. The error is "the procedure
entry point freeaddinfo could not be located in the dynamic lynk library
WS2_32.dll." The calls work fine under WinXP, but the app doesn't even launch
on Win2k.

This should be fixed in VS2005 according to this post from Gary Chang[MSFT]:

http://groups.google.com/group/microsoft.public.vc.atl/browse_frm/thread/7db62860f0cb4ff9/311b98e68533e7a5?lnk=st&q=atl+web+service+client+windows+2000&rnum=1&hl=en#311b98e68533e7a5

But it is not fixed and the solution that was linked by one poster for
VS2003 doesn't seem to work for me with 2005 either.

What exactly do I need to do to fix this problem?

Articulate

unread,
Jan 4, 2006, 11:46:01 PM1/4/06
to
Update: I was able to get rid of this error message by setting WINVER, etc.
to 0x500, however all webservice calls fail under Windows 2000 with hresult =
0x80040154. The calls work fine under XP. What could be the cause of this? Am
I missing a DLL or some system file somewhere?

Kim Gräsman

unread,
Jan 5, 2006, 2:35:20 AM1/5/06
to
Hello Articulate,

> Update: I was able to get rid of this error message by setting WINVER,
> etc. to 0x500, however all webservice calls fail under Windows 2000
> with hresult = 0x80040154. The calls work fine under XP. What could be
> the cause of this? Am I missing a DLL or some system file somewhere?

Any chance you can step through the call and see where it returns the failed
HRESULT?

0x80040154 == Class not registered, so there's definitely something missing
(or the code asks for something that shouldn't be there).

--
Best regards,
Kim Gräsman


nisha....@gmail.com

unread,
Feb 1, 2006, 9:33:59 PM2/1/06
to
Hi Kim,

I have the same problem. Do you have any solution for the issue.

Any help would be greatly appreciated
regards
feroze
Fero...@canon.co.nz

Kim Gräsman

unread,
Feb 2, 2006, 2:50:17 AM2/2/06
to
Hi Feroze,

>>> Update: I was able to get rid of this error message by setting
>>> WINVER, etc. to 0x500, however all webservice calls fail under
>>> Windows 2000 with hresult = 0x80040154. The calls work fine under
>>> XP. What could be the cause of this? Am I missing a DLL or some
>>> system file somewhere?
>>>
>> Any chance you can step through the call and see where it returns the
>> failed HRESULT?
>

> I have the same problem. Do you have any solution for the issue.

Well, I'll ask you the same question -- can you step through the code and
see where it fails? Then post back with details.
I don't have any experience with web services, so I probably can't help,
but you never know.

--
Best Regards,
Kim Gräsman


Jeff Henkels

unread,
Feb 2, 2006, 8:04:34 AM2/2/06
to
I don't know if this will apply to your specific case, but I ran across a
similar problem a few weeks back. Look up MSKB 822334 -- basically you add
a few lines to the top of <atlsocket.h>:

#if _WIN32_WINNT < 0x0502
#define ADDRINFOT addrinfo
#define GetAddrInfo getaddrinfo
#define FreeAddrInfo freeaddrinfo
#endif

"Articulate" <Artic...@discussions.microsoft.com> wrote in message
news:C64C65D8-3C1D-42E8...@microsoft.com...

0 new messages