将文件添加到资源 [英] Add files to resources
本文介绍了将文件添加到资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我向资源添加文件时,我想要对其进行组织,以便这些文件位于名为ZipConsole的文件夹中.我尝试将文件夹放在资源文件夹中,然后将ZipConsole文件拖放到ZipConsole文件夹中.但是,我将如何参考并查看该文件夹是否存在?或者说我想从那个文件夹拿东西.
当我转到resource.resx时,它将在其中显示我的文件.
When I add files to the resource, I want to organize it so those files are in a folder called ZipConsole. I''ve tried making the folder in the resource folder and just drag and drop the ZipConsole files into the ZipConsole folder. But how would I reference and see if that folder exist? Or say I want to take things from that folder.
When I go to resource.resx it shows my files in there.
推荐答案
您可以使用 ^ ]
在此处查看示例
http://support.microsoft.com/kb/319292 [
You access the resource in your code by using GetManifestResourceStream[^]
See the examples here
http://support.microsoft.com/kb/319292[^]
这篇关于将文件添加到资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文