Jump to content
  • Advertisement
Sign in to follow this  
Tano

[DirectInput] Inizializzing Keyboard..

This topic is 4866 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've a little problem.. I've declared two variables:
LPDIRECTINPUT8		 g_lpDI;
LPDIRECTINPUTDEVICE8 g_lpDIDevice;
So, when i try to create a new device:
hr = DirectInput8Create( hIstance, DIRECTINPUT_VERSION, 
                                         IID_IDirectInput8, (VOID**)&g_pDI, NULL );
	
	if FAILED(hr) 
		return FALSE; 
	
	hr = g_lpDI->CreateDevice(GUID_SysKeyboard, &g_lpDIDevice, NULL); 
	if FAILED(hr) 
		return FALSE; 
The Compilator give me this error: error C2146: syntax error : missing ';' before identifier 'g_lpDI' error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers : fatal error C1004: unexpected end of file found Where is the error??

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
check your include files or whatever definitions before g_lpDI for a missing ';'

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!