Why can my Visual C++ compiler find the file DINPUT.H when I compile the source code for an Immersion sample application?
If you include an IFC 2.1 header file in your code, the file will also be included. DINPUT.H is the Microsoft DirectX header file for DirectInput routines. DINPUT.H is normally available in VC++ developers’ systems, as it exists in the standard Microsoft Visual Studio 6 installation (VC98\Include), the Microsoft Platform SDK (mssdk\include), and also in the Microsoft DirectX SDK (dxsdk\include). However, you may not have this file if you are using VC++ 5. If you do not have DINPUT.H in your system, you will get a compile error. If you run into this error, you should first check to see if you have DINPUT.H on your system, but the compiler isn’t finding it. VC++ 6 users will want to check their Tools:Options:Directories settings to make sure the VC98\Include path is there. If you don’t have DINPUT.H on your system, you can download it here from Microsoft: http://msdn.microsoft.com/directx/downloads.asp Click the link for “Developer Downloads” and look for the latest partial DirectX SDK d
Related Questions
- Where can I get sample source code and more detailed information about the API (application program interface) of the software development kit?
- Why can my Visual C++ compiler find the file DINPUT.H when I compile the source code for an Immersion sample application?
- How do I open a DIB file captured using my Osprey card and the VidCap sample application?