XLL Excel addin in unmanaged C++

不打扰是莪最后的温柔 提交于 2019-12-21 03:44:57

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/6291080/xll-excel-addin-in-unmanaged-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!