Skip to main content
GameDev.net gamedev.net
🔒 Locked

Theese GUIDs..

Started by Diemonex Dec 30, 2001 at 7:54 AM 1 replies 350+ views
Original Post
Diemonex
Diemonex
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
GoofProg
GoofProg
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!?
zealouselixir
zealouselixir
Just a note. Don''t define INITGUID if you''re linking with dxguid.lib.


Later,
ZE.
[twitter]warrenm[/twitter]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.