Unit QuantlibAddin Project

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unit QuantlibAddin Project

Rwanma
Hi,

i am trying to export a single quantlibaddin function into Excel. What i would like to do is to create a new quantlibAddin project in VS2005, with my single function. What are the files that i need to keep inside the VS solution ? Could you please set up QuantLibAll solution with a single function implementation ?

thks


PS: my implementation works when imbedded in the Whole Solution QuantLibAll_vc8.sln
Reply | Threaded
Open this post in threaded view
|

Re: Unit QuantlibAddin Project

Eric Ehlers-2
Hello,

> Hi,
>
> i am trying to export a single quantlibaddin function into Excel. What i
> would like to do is to create a new quantlibAddin project in VS2005, with
> my
> single function. What are the files that i need to keep inside the VS
> solution ? Could you please set up QuantLibAll solution with a single
> function implementation ?

The function that you want to expose to Excel, is it the member function
of some class?  If so then you need one Excel function to wrap the
constructor of the relevant class, and another to wrap the member function
in question.  In that case the best starting point currently available
would be for you to have a look in solution
ObjectHandler/ObjectHandler_vc8.sln, project ExampleXllStatic.  This is a
hello-world XLL exposing to Excel constructors and member functions from
dummy library ExampleObjects.  You would need to implement your class and
member function in ExampleObjects (necessitating the addition of a compile
time static link from that library to QuantLib) and then expose the
function to Excel via ExampleXllStatic.

If the function in question is a stateless procedure independent of any
object, then you have no dependency on ObjectHandler.  Such a build is
also supported but unfortunately no documentation or examples are
currently available.

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