Archived

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

farhanx

can we use DInput7 while sdk is DX8

Recommended Posts

problem is when ever i try to use directinput 7 object it gives me errors while when i use direct8 input obj then it work fine.... why is that and how can i use older version of directinput???? this code is working DirectInput8Create(h1,DIRECTINPUT_VERSION,IID_IDirectInput8,(void**)&lpDI,NULL); if(FAILED(lpDI->CreateDevice(GUID_SysKeyboard,&lpDIkeyboard,NULL))) { // ERROR } while i wana use dinput7 but it gives me so many errors on DirectInputCreate() and says it is undeclear identifier.... nor this DirectInputCreateEx() is working , and error says undeclear identifier.

Share this post


Link to post
Share on other sites
The DirectX 8 SDK (as well as 9) does include the headers for all the previous interface versions. You just have to use a define to indicate which version of the interface you want to use. Look in the dinput.h header for a hint.

Share this post


Link to post
Share on other sites