Outdated functions

Started by
0 comments, last by adelamro 17 years, 11 months ago
I spent long time since i have worked with my game, i downloaded a earlier SDK and it isn´t compiling give the following errors: \Client.cpp(62) : error C2664: 'ID3DXMesh::LockIndexBuffer' : cannot convert parameter 2 from 'BYTE **' to 'LPVOID *' in ---
LoadMesh->LockIndexBuffer(D3DLOCK_READONLY, (BYTE**)&IndexPtr);
1>.\Client.cpp(102) : error C2664: 'ID3DXMesh::LockVertexBuffer' : cannot convert parameter 2 from 'BYTE **' to 'LPVOID *' in ---
LoadMesh->LockVertexBuffer(D3DLOCK_READONLY, (BYTE**)&m_VertexPtr);
1>.\Client.cpp(389) : error C2660: 'D3DXIntersect' : function does not take 8 arguments in --
BOOL cNodeTreeMesh::CheckIntersect(float XStart, float YStart,float, ZStart,
                                   float XEnd,   float YEnd,   float ZEnd,
                                   float *Length)
Advertisement
Replace your (BYTE**) cast to (LPVOID*) or (VOID**)
Aslo, check the documentation for D3DXIntersect to see what parameters have been changed/added/removed and adjust your code accordingly.
I live in Palestine, but it's not in the country list, so I picked Zimbabwe.

This topic is closed to new replies.

Advertisement