• Advertisement

Archived

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

DirectInput - Undeclared Identifier

This topic is 6047 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''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
Advertisement
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

  • Advertisement