Roleplaying Games Book Compilation Error

Started by
0 comments, last by JamesKilton 18 years, 11 months ago
When I have... IDirect3D9 g_D3D; if ((g_D3D=Direct3DCreate9(D3D_SDK_VERSION) == NULL) { // err code } I get a compilation error saying 'IDirect3D9': cannot instantiate abstract class. Should this be initialized as a pointer? Ie 'IDirect3D9 *g_pD3D'? Is this an error in the book?
Advertisement
Yes, that should be a pointer.

This topic is closed to new replies.

Advertisement