   how to pass an array as an argument
  I'm trying to allow a D3DVERTEXELEMENT9 array to be passed as an argument to a funtion.none of these work thoughFunction( D3DVERTEXELEMENT9[] elementarray );Function( D3DVERTEXELEMENT9& elementarray );Function( D3DVERTEXELEMENT9* elementarray );The way I use the function is like so.D3DVERTEXELEMENT9[] myarray = { ... };Function( myarray );is this possible?   
Function( D3DVERTEXELEMENT9* elementarray );D3DVERTEXELEMENT9[] myarray = { ... };Function( myarray );Here, the variable "myarray" acts implicitly as a pointer to the beginning of the array.   ;  The last one should work as should Function(D3DVERTEXELEMENT9 elementarray[]). What error do you get?   ;Quote:Original post by BTownTKDFunction( D3DVERTEXELEMENT9* elementarray );D3DVERTEXELEMENT9[] myarray = { ... };Function( myarray );Here, the variable "myarray" acts implicitly as a pointer to the beginning of the array.thanks guys, was my fault, thought I used the pointer first but guess I never tried it. was an error I was having trouble with late last nite.   