Jump to content
  • Advertisement
Sign in to follow this  
Hwang

D3DVECTOR and MMSYSTEM problem

This topic is 4157 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 am trying to load an Xfile with directx 8 right so D3DXMatrixLookAtLH( &matCameraView, &vecCameraSource, &vecCameraTarget, &D3DXVECTOR3( 0.0f, 1.0f, 0.0f ) ); The &D3DXVECTOR3( 0.0f, 1.0f, 0.0f ) ); line keeps being highlighted by the complier and the descrtption is 219 C:\Program Files\MultiplayerGP\Chapter12\XFileLoader\main.cpp [Warning] taking address of temporary I dont know what the problem is I copied this straight from the CD I also incountered a problem of mmsystem.lib the book tells me to add this but I cant find it anywhere can some one tell me where to get this lib?

Share this post


Link to post
Share on other sites
Advertisement
The problem is you're passing in the memory address of a temporary variable.

You should create a D3DXVECTOR3 and then pass the memory address of that variable into the function.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!