Hi,
I am trying to Create an XLL with C++ code which contains QuantLib info. I do not know how to pass the QuantLib parameters such as "Frequency", "Calendar" etc... Could someone help me to get started? Thanks a lot in advance Amandine ____________________________________________________________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Amandine,
> Hi, > > I am trying to Create an XLL with C++ code which contains QuantLib info. > I do not know how to pass the QuantLib parameters such as "Frequency", > "Calendar" etc... > Could someone help me to get started? You will need to write some code to translate the datatypes supported by the Excel interface, such as char*, into the required QuantLib types. You can look at QuantLibXL for one example of how to do this. QuantLibXL uses an Enumeration Registry which maps strings to function pointers that return the corresponding types. The documentation of the supported QuantLib::Frequency values is here: http://quantlib.org/quantlibaddin/auto/enums.html#enum_type_11 Steps for building QuantLibXL are here: http://quantlib.org/quantlibaddin/build_tutorial.html The code to populate the map for QuantLib::Frequency values is found in file QuantLibAddin\qlo\enumtyperegistry.cpp One example of an Excel function which receives a char* as input and calls in to the Enumeration Registry to retrieve the corresponding QuantLib::Frequency value is function qlPeriodFromFrequency() in file QuantLibXL\qlxl\Functions\date.cpp Regards, Eric ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |