WS2_32_XP
1.0.0
啟動使用RAD Studio 10.2更新2在Windows XP中編寫的運行時軟件包構建的應用程序時,一個錯誤提示
The procedure entry point inet_pton could not be located in the dynamic link library ws2_32.dll.
該應用程序從Windows Vista開始運行良好。
如Inetpton功能中所述:
The InetPton function is supported on Windows Vista and later.
RAD Studio 10.2 Update 2在Unit Windows.WinSock2.pas中具有新的更新:
function inet_pton; external ws2_32 name 'inet_pton';
啟動應用程序時,該功能是靜態綁定的。無法輕鬆修補源代碼。快速解決解決方案將作為單個可執行文件而不是運行時軟件包構建應用程序。
該項目嘗試將代理函數定義為原始Windows XP的WS2_32.dll的所有導出功能,包括Windows XP的WS2_32.dll中缺少的inet_pton 。它欺騙了Windows XP應用程序過程,以為inet_pton可用,並且不會引起任何錯誤。
請注意,DLL僅部署到Windows XP。