在Visual C ++ 10中的项目之间共享文件 [英] Sharing files between projects in Visual C++ 10

查看:203
本文介绍了在Visual C ++ 10中的项目之间共享文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010中有一个相对简单的设置 - 主应用程序和它依赖的DLL。我有一个头定义它的接口 - 如何设置标头包括在两个项目?

I've got a relatively simple setup in Visual Studio 2010- a main application and a DLL it depends on. I have a header that defines it's interface- how can I set up the header to be included in both projects? They are both in the same solution.

推荐答案

查看我对这个问题的回答问题,但它只是使用动态库。

See my answer to this question, but its just that you are using a dynamic library.

总之,主应用程序项目应该引用DLL项目以便链接,主项目应该包括文件夹引用,以便编译器可以访问头文件。

In summary, the main application project should reference the DLL project for the purposes of linking, and the main project should include folder references so the compiler can access header files.

这篇关于在Visual C ++ 10中的项目之间共享文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆