Roleplaying Games Book Compilation Error
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement