Original Post
Hello I wrote a program for draw Squre with Direct3D in VC++ 7.0. when compile it, get 2 message error: error C2664: 'D3DXMatrixLookAtLH' : cannot convert parameter 1 from 'D3DMATRIX *__w64 ' to 'D3DXMATRIX *' and error C2664: 'D3DXMatrixPerspectiveFovLH' : cannot convert parameter 1 from 'D3DMATRIX *__w64 ' to 'D3DXMATRIX *' these are 2 line of my codes that have error: D3DXMatrixLookAtLH(&view_matrix,&D3DXVECTOR3(0.0f,0.0f,10.0f),&D3DXVECTOR3(0.0f,0.0f,0.0f),&D3DXVECTOR3(0.0f,1.0f,0.0f)); and D3DXMatrixPerspectiveFovLH(&matProj,D3DX_PI/4,1.33,1.0f,100.0f); please guide me.