Passing variants 16 bytes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chet
    New Member
    • Nov 2006
    • 2

    #1

    Passing variants 16 bytes

    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];
    }
Working...