   D3DTS_WOLRD undeclared identifier - It's not true
  Hello.In my directx application I'm trying to do this:   - draw 2 cylinders   - draw a cube with texture using verteces and vertex buffer Problem:   - After I draw the cylinders using matrices to position the in world space (Device->SetTransform(D3DTS_WORLD,&matrix);) and I try to draw the cube with (Device->SetTransform(D3DTS_WORLD,&matrixcube); and DrawPrimitive() method) I receive de error:D3DTS_WOLRD undeclared identifier only for the cube. Why for cylinders is working and for cube is not working?I'm working in VC++ with DX9Sorry for my bad english   
  Can we see some actual code? Are both draw calls in the same file? Does the file the cube is rendered in include d3d9.h?   ;  if "D3DTS_WOLRD undeclared identifier" is the exact error message you get, it looks like a typo to me.  It should be D3DTS_WORLD.  If not, then more code is required.   ;  Perhaps it's a spelling mistake: D3DTS_WOLRD D3DTS_WORLD   ;  Also, check that you're including the DXSDK includes before other includes and that you're linking against the DXSDK libraries from the SDK and not from whatever was installed with Visual Studio.   ;  Here is some code:(all in the same file)VOID DrawCylinders(){// Cylinder 1D3DXMATRIX Matrix_Borders_Translation;D3DXMatrixTranslation(&Matrix_Borders_Translation,0.0f,1.0f,0.0f);D3DXMATRIX Matrix_Borders_RotationY; D3DXMatrixRotationY(&Matrix_Borders_RotationY,D3DXToRadian(90));    D3DXMATRIX Matrix_Borders_Final;D3DXMatrixMultiply(&Matrix_Borders_Final,&Matrix_Borders_Translation,&Matrix_Borders_RotationY);    VideoCard_Device->SetTransform(D3DTS_WORLD, &(Matrix_Borders_Final));  Cylinder1->DrawSubset(0); VOID DrawSquare(){   VideoCard_Device->SetStreamSource(0,VideoCard_VertexBuffer,0,sizeof(Custom_Vertex));    VideoCard_Device->SetTexture(0,Texture);D3DXMATRIX temp_trans;D3DXMatrixTranslation(&temp_trans,0.0f,0.0f,-10.0f);VideoCard_Device->SetTransform( D3DTS_WOLRD,&(temp_trans));VideoCard_Device->DrawPrimitive(D3DPT_TRIANGLESTRIP,0,1);}VOID Render(){    ...............    DrawCylinders();    DrawSquare();    ...........    ...........}I receive the error only for D3DTS_WORLD in DraqSquare().If I remove that code line I don't receive any errors   ;  you just made a typing error.Is not D3DTS_WOLRD is D3DTS_WORLD in the DrawSquare   ;  I don't understand. (Romanian: Claudiu..spune-mi pe romana daca poti)   ;Quote:Original post by johnny_no1_boyVideoCard_Device->SetTransform(D3DTS_WORLD, &(Matrix_Borders_Final));  ...VideoCard_Device->SetTransform( D3DTS_WOLRD,&(temp_trans));I receive the error only for D3DTS_WORLD in DraqSquare().If I remove that code line I don't receive any errors;  :) I can't belive it... =)) THANKSS!!!!!!!   