Original Post
I'm just starting to learn how to use Direct3D, and the book I'm using has been incredibly unhelpful by forgetting to tell me something or other, because I've copied the code out word-for-word and it still wont compile. Can anybody tell me what is wrong with this code? The custom derived class inherits from a window class that works just fine; /* Custom derived class (window) */ class D3DWindow : public mrWINDOW_Window { /* Declare the Direct3D interfaces */ LPDIRECT3DD8 m_pD3D; LPDIRECT3DDEVICE8 m_pD3DDEVICE; // Blah blah blah }; When I compile it, the compiler tels me "syntax error : missing ';' before identifier 'm_pD3D' ". What gives?