Sign in to follow this  
AndrewPL

standard library doesn't compile

Recommended Posts

AndrewPL    126
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
centipede    304
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

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