Friends,

Could I have your valuable advice on how to do this in VB6. I am not familiar if VB6 can perform this kind of vector algebra by some preset commands.


I have 2 long byte arrays :

ByteArr_X = [0000000011111000000001111]
ByteArr_Y= [0010010011111000000001111]

I want to make a new byte array:

ByteArr_Z

such that:

first element of ByteArr_X* 1 + first element of ByteArr_Y *2
second element of ByteArr_X* 1 + second element of ByteArr_Y *2
third element of ByteArr_X* 1 + third element of ByteArr_Y *2
...
...
...
last element of ByteArr_X* 1 + last element of ByteArr_Y *2

Can VB6 perform vector mathematics, or how does one approach this type of mathematics in VB6?

Calculus