Tools Library 中Excel Report下的一堆函数你该去玩一玩 看起来你 应该只要要用到下列函数
New
ExcelRpt_ApplicationNew
Quit
ExcelRpt_ApplicationQuit
Workbook
Open
ExcelRpt_WorkbookOpen
Close
ExcelRpt_WorkbookClose
Cell Range
Write Data
ExcelRpt_WriteData
Read Data
ExcelRpt_ReadData
Read Data To Table Control
ExcelRpt_ReadDataToTableControl
Get Cell Value String Length
ExcelRpt_GetCellValueStringLen
Get Cell Value
ExcelRpt_GetCellValue
1,静态调用,必须有.dll .h .lib 三个文件,将3个文件拷贝到工程目录,在你的源文件中include .h文件,在工程项目上 右键 添加 .lib文件,就可以用dll中的函数了,函数原型在.h中。这种方法最普遍,一般都是这样用。2,动态调用,有.dll 一个文件就可以了毕野,这个麻烦一些,要定义函数指针,用 LoadLibrary("***.dll")用GetProcAddress获取函数指针来调手好喊用函数,到网上搜索例袜脊子,很多的,几句话说不清楚。
(注意这个DLL必须是标准C编译方式的dll)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)