Codematic Base Xll project
This project is designed to be as easy as possible to use as an introduction to creating xlls.
Even opening it is as easy as possible:
There is a .dsw for Visual C++6.0 users and a .sln for (the free) Visual Studio C++ Express 2008. If you are using a version of Visual Studio between these open the .dsw and accept the offer to convert it to your VS version.
Creating an xll requires a whole bunch of scaffolding, which you can completely ignore once its in place. We have tried to put it in place for you so you don't ever have to consider it.
Part of that scaffolding is the Excel xll SDK from Microsoft. There are two versions of this. The Excel 97 version and the Excel 2007 version.
The Excel 97 version doesn't work so well with modern compilers. The 2007 one is quite a bit more complex to cope with the additional features of 2007.
The Codematic solution was to modify the single function that causes issues in modern compilers and stick with the 97 version, simply because that is more straightforward to understand for less experienced C/C++ devs.
The Microsoft SDK files are the ones highlighted here:
This base project is not meant for extremely complex systems, more for fairly simple lightweight functions, with the emphasis on easy to follow with limited C/C++ knowledge.