actually integer in VB is 2 Byte from -32768 to 32767, and what you put in it is long in VB (at least for VB 6.0) it is true. But just believe me it is not the problem, the problem is I do not know how to use SafeArrayPutElement fnc at least it do not work for me.
thanks
Ilya
I didn't modified the safearray that in the VARIANT structure, I modified the array which points to it using SafeArrayAccessData(pv->parray,(void**)&arr); This is a question how to modify the array within safearray and r=return it.
Hi, I need help with SafeArray structure, in short I need to import Variant from Excel VBA using dll and change array by reference, I succeeded in bringing array in and working with it, but I do not know how to get back
here is my code:
c++ side:
short __stdcall Single_SafeArray(VARIANT *pv){...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.