[英]ScktComp.hpp is missing in RAD Studio 10.3
I am currently migrating an old project from Borland C++Builder 5 to Embarcadero RAD Studio 10.3 Rio.我目前正在将一个旧项目从 Borland C++Builder 5 迁移到 Embarcadero RAD Studio 10.3 Rio。
Since the old project is not easily portable, I needed to recreate all the units and forms in a new RAD Studio project.由于旧项目不易移植,我需要在新的 RAD Studio 项目中重新创建所有单元和 forms。
This has been going fine until I encountered a file which uses the ScktComp.hpp
file.这一直很好,直到我遇到一个使用
ScktComp.hpp
文件的文件。
Can someone point me in the right direction as to where I might find and how I can include this file in my project?有人可以指出我可以在哪里找到以及如何将这个文件包含在我的项目中的正确方向吗?
The TClientSocket
and TServerSocket
components have been deprecated for a LONG time, and are no longer installed by default . TClientSocket
和TServerSocket
组件已被弃用很长时间, 默认情况下不再安装。 If you want to use them, you must install them manually.如果要使用它们,则必须手动安装它们。 But, you really should rewrite the old code to use an up-to-date socket library, such as Indy (which is pre-installed in the IDE), or to just use Microsoft's WinSock API directly (which is what the old components use internally).
但是,您确实应该重写旧代码以使用最新的套接字库,例如Indy (预装在 IDE 中),或者直接使用 Microsoft 的 WinSock API(这是旧组件使用的)内部)。
That being said, if you must use the old socket components, then know that the ScktComp.hpp
header file was renamed to System.Win.ScktComp.hpp
in C++Builder XE2 (read up about Unit Scope Names ).话虽如此,如果您必须使用旧的套接字组件,那么要知道
ScktComp.hpp
header 文件在 C++Builder XE2 中已重命名为System.Win.ScktComp.hpp
(阅读有关Unit Scope Names的信息)。 A legacy ScktComp.hpp
header file was provided for backwards compatibility ( #include
'ing the new header file internally) but it was eliminated in C++Builder 10.1 Berlin (XE8 and 10.0 Seattle warned users that legacy headers were being deprecated for future removal).提供了一个遗留的
ScktComp.hpp
header 文件以实现向后兼容性( #include
内部新的 header 文件),但它在 C++Builder 10.1 Berlin 中被淘汰(XE8 和 10.0 西雅图警告未来用户将弃用遗留头文件)。
So, from 10.1 onward, you must use the new System.Win.ScktComp.hpp
file directly, the legacy ScktComp.hpp
file no longer exists.因此,从 10.1 开始,您必须直接使用新的
System.Win.ScktComp.hpp
文件,旧的ScktComp.hpp
文件不再存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.