简体   繁体   English

在两个Visual Studio C ++项目之间扩展类

[英]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.

相关问题 C ++ / C在Visual Studio中的2个项目之间共享全局变量 - C++/C Shareing global variable between 2 projects in Visual Studio c ++ visual studio 2008问题,在一个解决方案中有两个项目 - c++ visual studio 2008 issue with two projects in one solution visual studio c++ 解决方案中有两个独立项目的问题? - visual studio c++ problem with two independent projects in a solution? 在构建 C++ 项目时,Visual Studio CE 2019 和 Visual Studio CE 2015 之间有什么区别? - What differences are there between Visual Studio CE 2019 and Visual Studio CE 2015 when building C++ projects? 在两行之间检测visual studio c ++中的内存泄漏 - detect memory leak in visual studio c++ between two lines 扩展功能(又名修改)visual studio C / C ++编译器 - Extending functionalitty (aka Modifying) visual studio C/C++ compiler 如何在Visual Studio中的项目之间共享C ++源代码文件? - How do I share C++ source code files between projects in Visual Studio? 在未联网的计算机之间复制Visual Studio C ++项目 - Copying Visual Studio C++ projects between non-networked computers 在两个Visual Studio 2010 C ++项目(DLL和Win32项目)中共享头文件 - Share header files within two Visual Studio 2010 C++ projects ( DLL and a Win32 project) 如何在c ++项目之间共享类? - how to share class between c++ projects?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM