Jump to content
  • Advertisement
Sign in to follow this  
AndrewPL

standard library doesn't compile

This topic is 4857 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

Hi! I made a new project in MS-VisualStudio.Net but when I try to include <d3dx9anim.h> in one of my c++ units it doesn't compile. Insted of this i'm having a lot of errors for example: /////////////////////////////////////////////////////////////////////////// DECLARE_INTERFACE(ID3DXLoadUserData) { 1) STDMETHOD(LoadTopLevelData)(LPD3DXFILEDATA pXofChildData) PURE; 2) STDMETHOD(LoadFrameChildData)(LPD3DXFRAME pFrame, LPD3DXFILEDATA pXofChildData) PURE; 3) STDMETHOD(LoadMeshChildData)(LPD3DXMESHCONTAINER pMeshContainer, LPD3DXFILEDATA pXofChildData) PURE; }; 1) error C2059: syntax error : ')' 2) error C2059: syntax error : ')' 3) error C2059: syntax error : ')' // {AC8948EC-F86D-43e2-96DE-31FC35F96D9E} 4) DEFINE_GUID(IID_ID3DXAnimationController, 0xac8948ec, 0xf86d, 0x43e2, 0x96, 0xde, 0x31, 0xfc, 0x35, 0xf9, 0x6d, 0x9e); 4) error C2065: 'IID_ID3DXAnimationController' : undeclared identifier //////////////////////////////////////////////////////////////////////////// why those errors occur? After all <d3dx9anim.h> is a standard library and I havn't changed it. thx for reading.

Share this post


Link to post
Share on other sites
Advertisement
Are you including only <d3dx9anim.h>? Problem is that STDMETHOD macro is not #defined in that header. You should include only <d3dx9.h>, which includes all other headers needed.

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!