将资源嵌入到C ++ / CLI项目中 [英] Embedding resource in a C++/CLI project

查看:145
本文介绍了将资源嵌入到C ++ / CLI项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在C ++ / CLI项目中嵌入一些文件(文本文件,也许是图形) - 最好和我在C#项目中一样。这可能是不可能的,因为我发现在这篇文章: http://bytes.com/topic/net/answers/571530-loading-markup-xamlreader-load-resource-file#post2240705 。这是在三年前写的,所以也许现在有一些方法可以做到这一点(在VS2k8)?

I'd like to embed some files (text files, maybe graphics) in a C++/CLI project -- preferably the same way I can do in C# project. This might be however impossible, as I found in this post: http://bytes.com/topic/net/answers/571530-loading-markup-xamlreader-load-resource-file#post2240705. This was written three years ago, so maybe now there is some way to do this (in VS2k8)?

推荐答案

Cli项目转到属性...,然后查看链接器下,然后输入,你会看到嵌入文件列表中嵌入管理资源文件。

Under C++/Cli project go to "Properties…", then look under "Linker", and then "Input", you’ll see the list of embedded files under "Embed Managed Resource File".

这篇关于将资源嵌入到C ++ / CLI项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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