• Advertisement

Archived

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

DI init prob

This topic is 5904 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

Ello, I''m trying to compile some code from a book, but for some reason I get this problem: error C2065: ''DirectInputCreateEx'' : undeclared identifier That means that the compiler can''t find the definition of DirectInputCreateEx, right? I''ve included all the libs, set the include dir and #included dinput.h. In my own project it works without a problem but here it doesn''t work, any idea why? Something I''ve forgot?

Share this post


Link to post
Share on other sites
Advertisement
First check if you have at least the DirectX7 SDK installed.
Second make sure that the include path for DX7 is before any other include path that may lead to older versions of the sdk (for example the files that ship with VC 6 are old ones).

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Be sure the libs and the include files are the same version. Probably this error is caused by wrong include files or something, because the error is: DirectInputCreateEx is an undeclared identifier. That means the compiler cannot find the function, even not a prototype. If it could find that, the error would have been something like DirectInputCreateEx is an unsolved external.

Share this post


Link to post
Share on other sites

  • Advertisement