Update of /cvsroot/quantlibaddin/QuantLibAddin/gensrc/stubs
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11657/gensrc/stubs
Modified Files:
stub.excel.includes stub.excel.register
Log Message:
cleaner processing for object references
Index: stub.excel.register
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/gensrc/stubs/stub.excel.register,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** stub.excel.register 6 Jun 2006 09:09:07 -0000 1.1
--- stub.excel.register 9 Jun 2006 18:58:47 -0000 1.2
***************
*** 1,8 ****
! #include <oh/objhandlerdefines.hpp>
! #include <windows.h>
! #include <xlsdk/xlcall.h>
! #include <xlsdk/framewrk.hpp>
! #include <xlsdk/xlsdkdefines.hpp>
! #include <ohxl/conversions.hpp>
#include <qlo/qladdindefines.hpp>
/* Use BOOST_MSVC instead of _MSC_VER since some other vendors
--- 1,3 ----
! #include <ohxl/objhandlerxl.hpp>
#include <qlo/qladdindefines.hpp>
/* Use BOOST_MSVC instead of _MSC_VER since some other vendors
***************
*** 34,37 ****
--- 29,37 ----
#include <sstream>
+ #ifdef XLL_STATIC
+ // instantiate the objecthandler singleton
+ ObjHandler::ObjectHandlerXL oh;
+ #endif
+
DLLEXPORT void xlAutoFree(XLOPER *px) {
if (px->xltype & xltypeStr && px->val.str)
Index: stub.excel.includes
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/gensrc/stubs/stub.excel.includes,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** stub.excel.includes 6 Jun 2006 09:09:07 -0000 1.1
--- stub.excel.includes 9 Jun 2006 18:58:47 -0000 1.2
***************
*** 3,10 ****
#include <qlo/conversions.hpp>
%(includes)s
! #include <xlsdk/xlsdk.hpp>
! #include <oh/objhandler.hpp>
! #include <ohxl/conversions.hpp>
! #include <ohxl/functioncall.hpp>
#include <qlxl/session.hpp>
--- 3,7 ----
#include <qlo/conversions.hpp>
%(includes)s
! #include <ohxl/objhandlerxl.hpp>
#include <qlxl/session.hpp>
|