Re: Returning std::vector<double> using ObjectHandler

Posted by Eric Ehlers-2 on
URL: http://quantlib.414.s1.nabble.com/Returning-std-vector-double-using-ObjectHandler-tp8392p8393.html

Hi Bjorn,

> DLLEXPORT OPER *VectorTest(
> OPER *Indata) {
>
>
> boost::shared_ptr<ObjectHandler::FunctionCall> functionCall;
>
>     try {

At this point in the code - first thing within the try block - you
should say:

functionCall = boost::shared_ptr<ObjectHandler::FunctionCall>(
  new ObjectHandler::FunctionCall("VectorTest"));

> Excel complains about #NUM when I try it.

Please show us the code you use to register the function with Excel.

Kind Regards,
Eric



------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users