|
-
September 9th, 2005, 03:20 AM
#1
VARIANTS inside a SAFEARRAY
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..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|