   D3DXCreateEffect
  const char* g_strBuffer = "float4x4 World\r\n" "float4x4 View\r\n"  //D3DXMATRIX  "float4x4 Projection\r\n"  "float color,color2\r\n" "\r\n"  "struct VertexOut\r\n"  "{\r\n"  "float4 Pos : POSITION\r\n"  "float4 Color : COLOR\r\n"  "};\r\n"  "\r\n"  "VertexOut VShader(float4 Pos : POSITION)\r\n"  "{\r\n""VertexOut Vert = (VertexOut)0;\r\n"  "float4x4 Transform;\r\n"  "Transform = mul(World, View);\r\n"  "Transform = mul(Transform, Projection);\r\n"  "Vert.Pos = mul(Pos, Transform);\r\n"  "Vert.Color = float4(1.0f, color, 0.0f, 0);\r\n"  "return Vert;\r\n"  "}\r\n"  "technique FirstTechnique\r\n"  "{\r\n"  "pass FirstPass\r\n"  "{\r\n"  "Lighting = TRUE;\r\n"  "ZEnable = TRUE;\r\n"  "VertexShader = compile vs_2_0 VShader();\r\n"  "}\r\n"  "}\r\n"  "";    UINT dwBufferSize = ( UINT )strlen( g_strBuffer ) + 1;HRESULT Result = D3DXCreateEffect(gdevice, g_strBuffer, dwBufferSize, NULL, NULL, D3DXFX_NOT_CLONEABLE,  NULL, &MadeEffect, &errors );if(Result == D3D_OK){MessageBox(NULL,"Shader Created","",0);}else{MessageBox(NULL,"Shader Failed","",0);if( errors )MessageBox(0, (char*)errors->GetBufferPointer(), 0, 0);}I am getting unexpected token float4x4 does anyone know why?   
  I think you should use ; after vars definition...float4x4 World;Try do create effects in a .fx text file and not in the program code...The problem might be in how you formated the code...   ;  That was the problem i forgot the ; , thanks   