110,538
社区成员
发帖
与我相关
我的任务
分享
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string path = Application.StartupPath + "\\";
string dllFileName = "IrisSkin2.dll";
//******加载IrisSkin2.dll******
if (!File.Exists(path + dllFileName)) //文件不存在
{
FileStream fs = new FileStream(path + dllFileName, FileMode.CreateNew, FileAccess.Write);
byte[] buffer = Properties.Resources.IrisSkin2;//{GetData是命名空间}
fs.Write(buffer, 0, buffer.Length);
fs.Close();
}
//*****************************s
Application.Run(new Form1());
}