究竟如何读取内陷资源,始终是NULL.郁闷
Assembly myAssem = Assembly.GetEntryAssembly();string[] strf = myAssem.GetManifestResourceNames();
System.IO.Stream stream = myAssem.GetManifestResourceStream("WindowsApplication1.Resources.123ddd");
究竟如何读取内陷资源,始终是NULL,郁闷.是123ddd.exe,究竟该如何读取 --------------------编程问答-------------------- 将123ddd.exe导入到项目的资源后
可以在"WindowsApplication1.Properties.Resources.文件名"找到这个资源
再写成文件就行了
using(FileStream fs = new FileStream("123ddd.exe", FileMode.Create, FileAccess.Write))
{
fs.Write(WindowsApplication1.Properties.Resources.123ddd,
0,
WindowsApplication1.Properties.Resources.123ddd.Length);
}
补充:.NET技术 , C#