摘要: 当“平台调用”调用非托管函数时,它将依次执行以下操作: 1. 查找包含该函数的 DLL。2. 将该 DLL 加载到内存中。3. 查找函数在内存中的地址并将其参数推到堆栈上,以封送所需的数据。只在第一次调用函数时,才会查找和加载 DLL 并查找函数在内存中的地址4. 将控制权转移给非托管函数。平台调用会向托管调用方引发由非托管函数生成的异常。... 阅读全文
posted @ 2008-12-13 21:08 交叉小径的花园 阅读(314) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Threading;using System.Diagn... 阅读全文
posted @ 2008-12-13 20:37 交叉小径的花园 阅读(167) 评论(0) 推荐(0)
摘要: 需要引入的Dll:Interop.ACRODISTXLib.dllMicrosoft.Office.Interop.Excel.dllusing System.Reflection;using ExcelOLE = Microsoft.Office.Interop.Excel;using PDFOLE = ACRODISTXLib;private void ExcellFillPDF(){ ... 阅读全文
posted @ 2008-12-13 20:28 交叉小径的花园 阅读(549) 评论(0) 推荐(1)