Advertisement

DX Problems now :(

Started by February 19, 2002 01:13 AM
0 comments, last by titan2782 23 years ago
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
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
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.

This topic is closed to new replies.

Advertisement