• Advertisement

Archived

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

Problems with DirectInput

This topic is 5836 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 am using DirectX 8.1 and I''m running into a few problems. I''m pretty sure my code is correct, but I''m getting an error. The compiler is claiming that Aquire() and Unaquire() are not members of IDirectInputDevice8A. What gives? Relevant code:
  
DirectInput8Create(hInstance, DIRECTINPUT_VERSION, 
	IID_IDirectInput8, (void**)&m_Interface, NULL);
m_Interface->CreateDevice(GUID_SysKeyboard, &m_Keyboard, NULL);
m_Keyboard->SetDataFormat(&c_dfDIKeyboard);
m_Keyboard->SetCooperativeLevel(hWnd, DISCL_FOREGROUND | DISCL_NONEXCLUSIVE);
m_Keyboard->Aquire();
  
Error message: error C2039: ''Aquire'' : is not a member of ''IDirectInputDevice8A'' c:\dxsdk\include\dinput.h(1852) : see declaration of ''IDirectInputDevice8A'' FragLegs

Share this post


Link to post
Share on other sites
Advertisement
Hehe, i had this problem a while ago:- you spell Acquire wrongly. Its "Acquire", not "Aquire". Simple enough mistake to make

HTH, Steve

Share this post


Link to post
Share on other sites
Man, that one goes right up at the top of my "dumbest programming mistakes ever" list. Thanks.

FragLegs

Share this post


Link to post
Share on other sites

  • Advertisement