Article ID: 822334 - Last Review: April 19, 2007 - Revision: 3.5 BUG: Cannot locate the procedure entry point FreeAddrInfoW when you run an application on Windows Server 2003 or on Windows XPNote Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. On This PageSYMPTOMSWhen you run a Unicode-enabled application that uses the FreeAddrInfo Windows Sockets function, or that uses helper classes such as ATL::CSocketAddr on a computer that is running Microsoft Windows Server 2003 or Microsoft Windows XP, you may receive the following error message: The procedure entry point FreeAddrInfoW could not be located in
the dynamic link library WS2_32.dll. CAUSEThe ws2_32.dll library does not export the FreeAddrInfoW symbol that you must have to use the Unicode version of the FreeAddrInfo function. RESOLUTIONTo resolve this problem, follow these steps:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the problem
Note The CAsyncSocket class is an MFC class. The CSMTPConnection class is an ATL class. The problem that is described in the "Symptoms" section occurs in any Unicode-enabled application that uses the FreeAddrInfo Windows Socket function on a computer that is running Windows Server 2003 or Windows XP. Because the ATL CSocketAddr class uses the FreeAddrInfo function, the same problem also occurs in ATL 7.1. Any class in ATL 7.1 and MFC 7.1 that uses the CSocketAddr class to enable IPv6 support reflects this behavior. For example, the CAsyncSocket class and the CSMTPConnection class use the CSocketAddr class. ATL server classes such as CAtlHttpClient and CSoapSocketClientT use the ZEvtSyncSocket class, and display the same error. This behavior occurs because the ZEvtSyncSocket internal class uses the CSocketAddr class in its implementation. Note The CAtlHttpClient class provides HTTP client support. The CSoapSocketClientT class provides XML Web services client support. REFERENCESFor more information about changes that have been made to ATL, visit
the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/aa983525(VS.71).aspx
(http://msdn2.microsoft.com/en-us/library/aa983525(VS.71).aspx)
For
more information about new Windows Socket functions that have been added to the Windows Socket API, visit the following MSDN Web site:http://msdn2.microsoft.com/en-us/library/ms740642.aspx
(http://msdn2.microsoft.com/en-us/library/ms740642.aspx)
APPLIES TO
| Article Translations
|
Back to the top
