   D3D9 IndexBuffer STRANGE ERROR plz Help
  Hi again,Right i have no idea whats happening with this could someone please help, i''m well and truely stumped, it should work!I''m trying to create an index buffer, that i know how to do. So i have the code:IDirect3DVertexBuffer9 *IBuffer = NULL;if(FAILED(pd3dDevice->CreateIndexBuffe(LISize, 0, D3DFMT_INDEX16, D3DPOOL_MANAGED, &IBuffer, NULL))){   return E_FAIL;}AND i get the odest compiler error:cannot convert parameter 5 from ''struct IDirect3DVertexBuffer9 ** '' to ''struct IDirect3DIndexBuffer9 **Surely these are both the same thing and should work, just like creating a vertexbuffer, which i have working. I dont think ive seen this before, can anyone tell me whats happening here, and how i might solve it.Thanx very much Psy 
  No, they''re not the same. A vertex buffer is a buffer of vertices whilst an index buffer is a buffer if indices refering to such in a vertex buffer, hence the different names  just change the:IDirect3DVertexBuffer9 *IBuffer = NULL;to:IDirect3DIndexBuffer9 *IBuffer = NULL;/Q ;  AHHHHHHH!!!I must be well and truly blind, i''ve been looking at it for hrs and didn''t see it. Dumb or what!!Thanx for ure help dude!!;  No probs mate, I know the feeling... you get the most strange errors, spend hours turning every bit of code upside down and finally it all boils down to some simple typo or something similar. It's hell when you're there but it cracks you up afterwards :Dedit:nm   [edited by - Quirk on February 13, 2004 11:53:03 AM]