XLL Excel插件在非托管C ++ [英] XLL Excel addin in unmanaged C++
问题描述
我在非托管C ++中有一些数学模拟,现在我需要将它们与Excel集成(以便可以从Excel调用函数并获取值)。我不想使用任何VBA,所以我想我必须实现一个XLL插件。我想尽可能少使用第三方额外的框架。
开始使用SDK可能会有点不愉快。
我建议您尝试其中一个工具包:
- XLW(http://xlw.sourceforge.net/ )是一个标准的开源C / C ++包装器。
- Keith Lewis的NXLL库href =http://nxll.codeplex.com/> http://nxll.codeplex.com/ )可能值得一看,如果你感觉有点更冒险,像现代的C +
- 用于Excel的C / C ++工具包的劳斯莱斯是XLL +( http:// www .planatechsolutions.com / xllplus / )。
当然对于托管代码,或者做一个C#您的非托管C ++代码从.NET UDF,您将使用Excel-DNA( http://exceldna.codeplex.com )。
I have a few mathematical simulations in unmanaged C++ and now I need to integrate them with Excel (so that it is possible to call the functions from Excel and get the values back). I don't want to use any VBA, so I guess I have to implement an XLL addin. I would like to use as few third party additional frameworks as possible. Could someone point me to a good tutorial?
Starting out with the SDK can be a bit unpleasant. I'd suggest you try one of the toolkits:
- XLW (http://xlw.sourceforge.net/) is a standard open-source C/C++ wrapper.
- Keith Lewis's NXLL library (http://nxll.codeplex.com/) might be worth a look if you are feeling a bit more adventurous, and like modern-looking C++.
- The Rolls-Royce of C/C++ toolkits for Excel is XLL+ (http://www.planatechsolutions.com/xllplus/).
Of course for managed code, or to make a C# wrapper that calls your unmanaged C++ code from .NET UDFs, you'd use Excel-DNA (http://exceldna.codeplex.com).
这篇关于XLL Excel插件在非托管C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!