Sign in to follow this  
Raeldor

Roleplaying Games Book Compilation Error

Recommended Posts

Raeldor    254
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?

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