Hi,
I'm using these codes from this post xlcall.cpp:
What I am doing is getting the address of 1 cell based on row and column position.
in the first run the function code works fine.
but in the next call, the result appeared cryptic characters.
I don't know what the reason is:
Objects are wrapped and free upon completion.
XLOPER12 k1; k1.xltype = xltypeNum; k1.val.num = (1 + xr.rwFirst);
XLOPER12 k2; k2.xltype = xltypeNum; k2.val.num = (1 + xr.colFirst);
LPXLOPER12 from[2]{ &k1,&k2 };
XLOPER12 t;
Excel12v(219, &t, 2, from);
t.xltype |= xlbitXLFree;
Can someone tell me the cause?
Thanks you!