By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

Passing variants 16 bytes

P: 2
I am reading 16 bytes from a BIN file at a time and stroing inside a vector.
Vectors are made up of char *.
Now when im iterating through the vector im stroring those 16 bytes inside a buffer.
My ultimate aim is to store entire BIN file into a SAFEARRAY.
But before i need to transfer to a VARIANT.
im running a for loop to transfer 16 bytes 1 by1 from buffer to VARIANT.
My question is whether variant copies 1 by1 or takes complete 16 bytes a time....

for(int i = 0; i<16; i++)
{
vout.bval=buf[i];
}
Nov 8 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.