DI init prob

Started by
3 comments, last by Lord Maz 22 years, 4 months ago
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?
-Lord Maz-
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).
Jup, that''s done.
-Lord Maz-
if u have DX8 use DirectInputCreate8();

X4J
X4J
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.

This topic is closed to new replies.

Advertisement