我们可以在VS 2015中的另一个项目中使用.res / .resw文件(在一个项目中生成)吗? [英] Can we use .res / .resw files (generated in one project), in another project in VS 2015?
问题描述
我创建了一个.res文件,我想在另一个项目中使用它,以便.res文件中的所有资源都可以被另一个项目使用。是否有可能??
I have created a .res file and I want to use it in another project so that all the resources inside .res file can be used by another project. Is it possible??
我已经探索过.res文件包含资源的路径,资源没有嵌入其中。
I have explored that .res file contains the path to the resources, resources are not embedded into it.
任务我想要实现的是,我想创建一个.res文件,用于捆绑静态库使用的所有资源,然后应用程序可以在使用静态库时使用。
The task I want to achieve is that I would like to create a .res file for bundling all the resources that is used by a static library, which then the app can use while using the static library.
问候,
Vivek
推荐答案
>我想要实现的任务是,我想创建一个.res文件,用于捆绑静态库使用的所有资源,然后应用程序可以在使用静态库时使用。
>The task I want to achieve is that I would like to create a .res file for bundling all the resources that is used by a static library, which then the app can use while using the static library.
从你的描述中我不禁想到你真正需要的是一个包含资源和代码的DLL。
From your description I can't help thinking that what you really need is a DLL that contains both the resources and the code.
你为什么要使用静态库而不是一个DLL?
Why do you want to use a static library rather than a DLL?
Dave
这篇关于我们可以在VS 2015中的另一个项目中使用.res / .resw文件(在一个项目中生成)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!