G
Guest
New to this, I used to pass an array like this
function BytesToString(byref myarray() as byte, somethingelse as long) as long
and
m = BytesToString(fooBar(), bluenose)
This would send the descriptor or pointer to the array to the function
The acual code is
dim myarray() as byte = My.computer.filesystem.ReadAllBytes(infile)
res = BytesToString(myarray(),1,4)) 'read first 4 bytes only
And the function is as above.
I get a "number of indices is less than the number of dimentions in the
indexed array"
I just do not understand this.. if I put the first element of the array in
there, I get other errors.
This file is one that I have to read Bytes and words from, so I need access
to each and every byte. ALso, the files can be over a gig, so I really do not
want readallbytes, as that can cause problems on some pc's this is to run on,
but fileget isn't working.. which I will post in another question.
(I realy want to use fileget, but that is in another question).
function BytesToString(byref myarray() as byte, somethingelse as long) as long
and
m = BytesToString(fooBar(), bluenose)
This would send the descriptor or pointer to the array to the function
The acual code is
dim myarray() as byte = My.computer.filesystem.ReadAllBytes(infile)
res = BytesToString(myarray(),1,4)) 'read first 4 bytes only
And the function is as above.
I get a "number of indices is less than the number of dimentions in the
indexed array"
I just do not understand this.. if I put the first element of the array in
there, I get other errors.
This file is one that I have to read Bytes and words from, so I need access
to each and every byte. ALso, the files can be over a gig, so I really do not
want readallbytes, as that can cause problems on some pc's this is to run on,
but fileget isn't working.. which I will post in another question.
(I realy want to use fileget, but that is in another question).