Theese GUIDs..

Started by
1 comment, last by Diemonex 22 years, 3 months ago
I havent made any game specific coding for some years now. But I've decided to make a game as a project in school so this is my first real attempt for a game. Anyway, Everything is going well cept now when I'm about to use DirectInput I got a little problem. Btw, Im using Dx7..
    	lpdi->CreateDeviceEx(GUID_SysKeyboard,IID_IDirectInputDevice7,(void**)&lpdikey, NULL);    
the problem is GUID_SysKeyboard the program exits with and unhadled exception and the debugger give me the value of this guid(???-???....) I have #INITGUID I have included objbase.h and dinput.h I know I had this problem some year ago too, dunno what I did to solve it thou! So someone might know what I've forgot to do. Edited by - Diemonex on December 30, 2001 9:01:24 AM
Diemonex Games
Advertisement
You did everything correctly except you have not included dxguid.lib. It is looking for the GUID for your keyboard, but nothing is defined.

The nightmare travels across the cosmos with his burning mane. The trail of ash that is produced.

?Have a nice day!?

Just a note. Don''t define INITGUID if you''re linking with dxguid.lib.


Later,
ZE.

[twitter]warrenm[/twitter]

This topic is closed to new replies.

Advertisement