简体   繁体   English

RAD Studio 10.3 中缺少 ScktComp.hpp

[英]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 . TClientSocketTServerSocket组件已被弃用很长时间, 默认情况下不再安装 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.

相关问题 RAD Studio,在设计模式下锁定项目位置 - RAD Studio, lock item position in design mode 如何在RAD Studio XE中将TMsgDlgButtons的文本更改为“是”和“否”? - How to change the Text of TMsgDlgButtons “Yes” and “No” Buttons in RAD Studio XE? 在 embarcadero / RAD studio 中跨 .dfm 文件使用常量 - Using constant across .dfm files in embarcadero / RAD studio Delphi 7错误。 在RAD Studio XE5中无法打开项目 - Delphi 7 Error. Project not opening in RAD Studio XE5 尝试在 XE 中访问 RAD Studio 10.2 编译库时出现链接错误 - Link error when trying to access a RAD Studio 10.2 compiled lib in XE 在 Delphi 10.3 中编译 KBMMW 设计 package:vcl 冲突错误 (E2199) - Compiling KBMMW design package in Delphi 10.3: vcl conflict error (E2199) C builder RAD 2010 RTL / VCL Application-> Terminate()函数不终止应用程序 - C builder RAD 2010 RTL/VCL Application->Terminate() Function NOT TERMINATING THE APPLICATION 使用 DCC32 的 Delphi 10.3 编译具有旧的 Delphi 5 视觉风格 - Delphi 10.3 compilations using DCC32 have the old Delphi 5 visual style 其余的 TMessage 缺少参数在哪里? - Where are the rest of the TMessage missing params? c + +:owlnext + vcl:新窗口缺少其父级 - c++: owlnext + vcl: New Window missing its Parent
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM