当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Share headers between two projects

问题描述:

My project is in Visual Studio Express 2013. I have one Solution for my game called Game. Within the solution I have two Projects one called Client and one called Server. I wrote a Class called Game. I also wrote two more Classes, Client and Server, both inherit from the Game class. I have separate .cpp and .h files for each class. How can I use these files in both projects? I'd like to create a Client object in the client project and a Server object in the server project. Is this possible? Am I going about this the wrong way? I'm trying to use classes more.

分享给朋友:
您可能感兴趣的文章:
随机阅读: