摘要: //INI文件操作 //针对INI文件的API操作方法,其中的节点(Section)、键(KEY)都不区分大小写 //如果指定的INI文件不存在,会自动创建该文件。 //CharSet定义的时候使用了什么类型,在使用相关方法时必须要使用相应的类型 //例如 GetPrivateProfileSectionNames声明为C... 阅读全文
posted @ 2018-09-22 22:48 haiping_he 阅读(420) 评论(0) 推荐(0) 编辑
摘要: private const int SW_HIDE = 0; //隐藏任务栏 private const int SW_RESTORE = 9;//显示任务栏 [DllImport("user32.dll")] public static extern int ShowWindow(int hwnd, int nCmdShow); ... 阅读全文
posted @ 2018-09-22 22:27 haiping_he 阅读(2446) 评论(0) 推荐(0) 编辑
摘要: 添加引用到你的工程中,并使用using字段进行引用。 报错:未能加载文件或程序集“ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf116 解决方案:删除所有引用的NPOI相关的 阅读全文
posted @ 2018-09-22 21:31 haiping_he 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-22 19:45 haiping_he 阅读(1357) 评论(0) 推荐(0) 编辑