Archived

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

GliTch

DirectInput - Undeclared Identifier

Recommended Posts

I''m having a problem on initializing DirectInput. having included the #include and dinput.lib (directories link). when I complied the program, which is a simple window that accept input from a keyboard, I get this error, error C2065: ''DirectInputCreate'': undeclared identifier any idea way this happen? thanks...

Share this post


Link to post
Share on other sites
I'll bet you're using DirectX8...
Just define this before including the header:

    
#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x0700
#endif


That should do the trick


- Goblineye Entertainment
The road to success is always under construction

Edited by - Tornado on August 2, 2001 5:55:52 AM

Share this post


Link to post
Share on other sites