xll_student
2010-02-12 17:06:01 UTC
Hi, I am new to XLL development.
I am trying to return XLOPER from the following function:
__declspec(dllexport) XLOPER* __stdcall Z_TEST2(double p_Years)
{
XLOPER arg;
arg.xltype = xltypeNum;
arg.val.num = p_Years + 1;
return &arg;
}
Function return type and arguments are described as "RB!" string.
Can you please take a look at the code and let me know what is wrong
(instead of a number, the call =Z_TEST2(15) returns me #VALUE! error).
Thank you!
I am trying to return XLOPER from the following function:
__declspec(dllexport) XLOPER* __stdcall Z_TEST2(double p_Years)
{
XLOPER arg;
arg.xltype = xltypeNum;
arg.val.num = p_Years + 1;
return &arg;
}
Function return type and arguments are described as "RB!" string.
Can you please take a look at the code and let me know what is wrong
(instead of a number, the call =Z_TEST2(15) returns me #VALUE! error).
Thank you!