Jump to content
  • Advertisement
Sign in to follow this  
SCarvenger

Outdated functions

This topic is 4458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!