2013年8月5日

摘要: excel进程无法通过excelapp.quit()退出。1.尝试http://support.microsoft.com/kb/317109/zh-cn中的方法,不起作用。System.Runtime.InteropServices.Marshal.ReleaseComObject(worksheets); System.Runtime.InteropServices.Marshal.ReleaseComObject(worksheet); System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp); System.Ru 阅读全文
posted @ 2013-08-05 19:22 亲亲柚子 阅读(414) 评论(0) 推荐(0) 编辑

2013年6月6日

摘要: 编译后报如下错误:未能加载文件或程序集“file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll”或它的某一个依赖项。系统找不到指定的文件。 在app.config文件中添加如下代码:<startup useLegacyV2RuntimeActivationPolicy="true"> <s 阅读全文
posted @ 2013-06-06 15:46 亲亲柚子 阅读(229) 评论(0) 推荐(0) 编辑

2013年5月30日

摘要: 1. 如果函数只有传入参数,比如:01.//C++中的输出函数 02.int __declspec(dllexport) test(const int N) 03.{ 04.return N+10; 05.} 对应的C#代码为:01.[DllImport("test.dll", EntryPoint = "#1")] 02.public static extern int test(int m); 03. 04.private void button1_Click(object sender, EventArgs e) 05.{ 06.textBox1. 阅读全文
posted @ 2013-05-30 20:22 亲亲柚子 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在托管代码和本地代码之间传递数组,是interop marshaling中间比较复杂的一个问题。本文从数组的定义开始,介绍数组marshalling的三种方法,并对blittable类型等概念做进一步的讨论。当托管代码需要和本地代码互操作时,我们就进入了interop的领域。interop的场景形形色色,不变的是我们需要把数据从一个世界marshal到另一个世界。在讨论数组marshalling之前,请各位和我一起思考一个问题,什么是数组?之所以要讨论这个问题,原因在于不同的术语在不同的语境中含有不同的意思。在使用c语言的时候,我认为数组就是一个指针。但是熟悉c#的朋友可能不同意我的观点,数组 阅读全文
posted @ 2013-05-30 20:17 亲亲柚子 阅读(664) 评论(0) 推荐(0) 编辑

2013年5月9日

摘要: Bitmap or Vector 位图或矢量图vector格式有: emf 、eps、pdf用print命令print -dformat,-doption,filename例如:matlab生成彩图eps图,分辨率dpi300,附tiff预览(可嵌入word processer),保存为matilda.epsprint -depsc -tiff -r300 matildaprint -deps 生成eps黑白图print(figure_handle, '-depsc', filename) 阅读全文
posted @ 2013-05-09 19:00 亲亲柚子 阅读(415) 评论(0) 推荐(0) 编辑
摘要: mkdir('E:\aba') 阅读全文
posted @ 2013-05-09 18:55 亲亲柚子 阅读(430) 评论(0) 推荐(0) 编辑

导航