a. function prototype (it seems) does not allow. &buffer is
BYTE(*)[1024].
This means, pointer to a BYTE array with size of 1024 elements. But
function, as far as I can understand, expects either BYTE[], or a
BYTE*.
the function prototype that would accept your example should be
int f(BYTE (*pArr)[1024[);
b. function prototype is either BYTE[] or BYTE* (I guess, may be a void
pointer, or something else that accepts any of BYTE[] or BYTE*). In
that case, "b" should compile, but "a" should give an error.
if your intent is to write something that can accept both arrays and
arrays of arrays, try to use templates.
Ismail Pazarbasi
Kenny - 15 Mar 2005 02:42 GMT
thanks..
got it... :)
> a. function prototype (it seems) does not allow. &buffer is
> BYTE(*)[1024].
[quoted text clipped - 14 lines]
>
> Ismail Pazarbasi