I have some data that I want to put inside VARIANTS inside a Safearray.

Im having trouble putting the data inside the SAFEARRAY.

WHen I cast a pointer to a VARIANT,

VARIANT* pvDataIn = reinterpret_cast<VARIANT*>(pSafeData->pvData);

1). Can I just use pointer arithmatic to add SafeArrayPutElement().

2). do I need to first put the data into VARIANTs then put them into the safearray or becuase its an safearray of vairants can I just add them straight into the array, and if so do I need to call VariantInit()...

Thanks for any help..