Code:
CODE
int WriteBlock(int index, BYTE *buffer, int count);
int ReadBlock(int index, BYTE *buffer, int count);
I am making a call to ReadBlock() as follows:
Code:
CODE
BYTE record_stream[512];
ReadBlock(some_index,&record_stream,1);
ReadBlock(some_index,&record_stream,1);
My problem is that when I compile I get the following error:
Code:
CODE
no matching function for call to `disk::ReadBlock(int, BYTE (*)[512], int)'
candidates are: int disk::ReadBlock(int, BYTE*, int)
candidates are: int disk::ReadBlock(int, BYTE*, int)
Not having very much experience with BYTE streams I am just treating them like char arrays. My questions are:
1-Am I right to think of BYTE arrays as being similar to char arrays?
2-(more importantly)How am I supposed to properly send in a BYTE array to this function? Do I need to create the BYTE array on the heap possibly?
Anyways, thanks in advance for any help.
kvarnerexpress

