MattWoberts
Programmer
Hi,
Its been years since I needed to work in VC++, and I have an embarrasingly simple question, that I can't work out!!
I have an array, and I need to set its value to "null".
My code that adds the value to the array is something like this:
_variant_t v2;
v2 = 10;
SafeArrayPutElement(psa,lDimension,&v2);
How can I set it to "null". Obviously, I can't just do this:
v2 = null;
SafeArrayPutElement(psa,lDimension,&v2);
Any ideas?
Its been years since I needed to work in VC++, and I have an embarrasingly simple question, that I can't work out!!
I have an array, and I need to set its value to "null".
My code that adds the value to the array is something like this:
_variant_t v2;
v2 = 10;
SafeArrayPutElement(psa,lDimension,&v2);
How can I set it to "null". Obviously, I can't just do this:
v2 = null;
SafeArrayPutElement(psa,lDimension,&v2);
Any ideas?