|
如何得到资源文件中的文件
在应用程序里嵌入资源,可以避免用户因删除资源文件而造成应用程序出现错误。要使用资源文件中的文件,只需要按下面的方法调用即可:
VB.NET
Function GetEmbeddedResource(ByVal strname As String) As System.IO.Stream
Return System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(strname)
End Function
C#
System.IO.Stream GetEmbeddedResource(string strname){
return System.Reflection.Assembly.GetExecuti
1页 > 2页 >
查看上一页
返回分类首页 返回96PC首页
查看下一页 |