0

I currently have a solution with two different projects say A and B. Both the projects use a class say foo. Currently both the projects have a copy of foo. The problem is whenever I make a change (say add/remove a property) in foo I have to make the changes in the other project too. I know in C# I could create a separate project and reference it in all other projects. However I dont know how to do this in c++ VS2010. Is this the best approach here any suggestions ?

4

1 回答 1

2

C++ (Win) 中也有同样的可能性

您可以创建链接到的静态库,也可以创建动态加载的动态库(dll)。无论哪种方式,您都有班级的标题。您可以尝试更简单的方法,那就是使用静态库

于 2013-05-05T18:01:45.220 回答