Returning double data type

Aug 22, 2013 at 8:11 AM
Edited Aug 22, 2013 at 9:23 AM
I write function that take 2 doubles and 1 optional bool arguments:
static AddInX pt_h(
    FunctionX(XLL_DOUBLEX, _T("?test"), _T("test"))
    .Arg(XLL_DOUBLEX, _T("P"), _T(""))
    .Arg(XLL_DOUBLEX, _T("T"), _T(""))

double WINAPI test(double P, double T, bool SI)
    #pragma XLLEXPORT //This is fix!!!
    double x;   
    return x;
But when Excel load addin error appear. I think I set incorrect return type. Which return type I must use? Thanks!
Aug 22, 2013 at 9:23 AM
Forgive me please, I mistake about #pragma XLLEXPORT function decoration. Question about returning double type is closed