question

DangDKhanh-2637 avatar image
0 Votes"
DangDKhanh-2637 asked DangDKhanh-2637 edited

Question for xll excel ?

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;

124629-image.png


Can someone tell me the cause?

Thanks you!






c++
image.png (26.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers