   help with vertex buffer
  What is wrong with this line, I already defined VERTEX and D3DFVF_VERTEXD3DDevice->CreateVertexBuffer(sizeof(VERTEX)*3 ,0, D3DFVF_VERTEX, D3DPOOL_DEFAULT,&VB,NULL);   
  It might help if you say a little bit more about what the problem is.  Are you getting a compile error or a runtime error or what?   ;  this is what I am getting.error C2660: 'IDirect3DDevice9::CreateVertexBuffer' : function does not take 3 arguments   ;  I would say it is the way you defined D3DFVF_VERTEX...   ;  #define D3DFVF_VERTEX (D3DFVF_XYZRHW | D3DFVF_DIFFUSE);thats how.   ;  FIXED!   ;  Since the OP decided not to share the cause for his problems, I'll just explain so anyone with a similar issue might find the answer:The #define ended with a ;, resulting in the statement being terminated prematurely.This could be avoided by using a static const DWORD instead of a #define.   