There are 2 C++ libaries to create excel.
One is free xlslib : http://xlslib.sourceforge.net/
One is free xlslib : http://xlslib.sourceforge.net/
Other is commercial libXL : http://www.libxl.com/
Other is commercial libXL : http://www.libxl.com/