Sign in to follow this  

standard library doesn't compile

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

This topic is 4518 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this