XLL Excel addin in unmanaged C++

calendar_today Asked Jun 9, 2011
thumb_up 12 upvotes
history Updated April 16, 2026

Question posted 2011 · +9 upvotes

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?

Accepted answer +12 upvotes

Starting out with the SDK can be a bit unpleasant. I’d suggest you try one of the toolkits:

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

External references cited (4)

Top excel Q&A (6)

+12 upvotes ranks this answer #59 out of 167 excel solutions on this site .