标题:请教VS2005中的资源的使用
只看楼主
老玩童
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-10-3
 问题点数:0 回复次数:0 
请教VS2005中的资源的使用

请教VS2005中的资源的使用。
我想将一些数据放在资源文件中,但没法读出,例如我想资源中添加一个字符串,名字为Welcome,我用下面的程序想在程序中读出,但提示为找不到所标识的资源,代码如下,请高手指教。
ResourceManager rm = null;
rm = new ResourceManager("Resources", Assembly.GetExecutingAssembly());
CultureInfo ci = Thread.CurrentThread.CurrentCulture;
string aaa = rm.GetString("Welcome", ci);

2007-10-13 22:30



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-177392-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.202450 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved