[英]Extending a class between two Visual Studio C++ projects
Please have a look at the following diagram 请看下图
This is socket programming. 这是套接字编程。
Server
is one VS Project. Server
是一个VS项目。 Client
is another VS project. Client
是另一个VS项目。 But, they both extend one class!!! 但是,他们俩都扩大了一类! How can I extend a class between 2 VS applications????
如何在2个VS应用程序之间扩展类? Please help!
请帮忙!
Put the base class in a header file which is visible and accessible to both projects. 将基类放在一个头文件中,这两个项目都可以看到并访问它们。
#include
that file from those projects and extend the base class. #include
这些项目中的文件,并扩展基类。
In Visual Studio, you can make a solution which contains projects . 在Visual Studio中,您可以制作一个包含项目的解决方案 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.