2010年2月23日

摘要: Global.asax中配置: void Application_Start(object sender, EventArgs e) { // Code that runs on application startup List<string> programList = new List<string>(); programList.Add("WEBR1010"); A... 阅读全文

posted @ 2010-02-23 13:57 Leon0812 阅读(199) 评论(0) 推荐(0)

摘要: using System;using System.Runtime.InteropServices;/// <summary>/// C#调用非托管的DLL/// <description>/// 非托管的就特殊处理(实际上你拷贝到bin是没有任何作用的,因为CLR会把文件拷贝到一个临时目录下,然后在那运行Web,而CLR只会拷贝托管文件,这就是为什么把非托管的DLL放到b... 阅读全文

posted @ 2010-02-23 11:16 Leon0812 阅读(381) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3