Archived

This topic is now archived and is closed to further replies.

DX Problems now :(

This topic is 5781 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I can run my program, it compiles fine, but when it wont initialize! It errors out trying to initialize DX if ( DirectInputCreateEx( hInstance, // Window Instance DIRECTINPUT_VERSION, // Direct Input Version IID_IDirectInput7, // Version 7 (void**)&g_DI, // Direct Input NULL ) ) // NULL Parameter { MessageBox(NULL,"Couldnt initialize DI","",MB_OK); return(false); // Couldn''t Initialize Direct Input } errors out on this if statement in the DI_Init() function y? I am using the dx7 lib files and header files, but i have dx8.1 installed on my system. Dustin Davis

Share this post


Link to post
Share on other sites
Have you actually installed the Dx7.lib and header files into your compiler as mentioned in the DirectInput Tutorial?

Using DX8 will not make a difference as DX is designed to emulate past versions.

Share this post


Link to post
Share on other sites