当前位置:大问百书>百科问答>xlw是什么文件

xlw是什么文件

2024-08-16 11:54:37 编辑:zane 浏览量:634

xlw是什么文件

的有关信息介绍如下:

xlw是什么文件

  XLW(AWrapperfortheExcelAPI)是一个C++语言对Excel的开发者工具包(SDK)的一个封装,简化了C++程序操作Excel文档的方法,XLW4.0已经支持Excel2007。

  功能:使用XLW可以很方便的使用C++对Excel功能进行扩展,首品止商乐增先它提供了一个模板生成器xlwTemplateExtractor.exe,可以生成相应的工程文件,然后又具有一个接口生成器InterfaceGenerator.exe来自动生成相应的接口包装文件(xlwWrapper.cpp),从而大大减少了只使用ExcelSDK来完成XLL开发所需的相关代码,降低了360问答开发难度,避免一些错误会天经菜安级世婷世的产生。

  XLW示例:

  C++头文件cppinterface.h

#ifndef TEST_H

02.#define TEST_H

03. 

04.#include <xlw/MyContainers.h>

05.#include <xlw/CellMatrix.h>

06.#incl适次同旧到酒煤又消讲结ude <xlw/DoubleOrNothing.h>

07.#include <xlw/ArgList.h>

08.#include <xlw/XlOpenClose.h>

09. 

10.using namespace xlw;

11. 

12.//<xlw:libraryname=MyTestLibrary

13. 

14.原赶念限short // echoes a short

15.EchoShort(short x /肉企接受消/ number t员名八础沉比免回o be echoed

16.);

17.#endif

C++源文件source.cpp

#include <cppinterface.h>

02.#pragma warning (disable : 4996)

03. 

04.short // echoes a short

05.EchoShort(short x // number to be echoed

06.)

07.{

08.return x;

09.}

版权声明:文章由 大问百书 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.dawenbaishu.com/answer/58194.html
热门文章