Skip to main content
gamedev.net
🔒 Locked

Wrong DirectInput Version?

Started by Quiggy 3 replies 900+ views
Original Post
Quiggy
Quiggy
I get this message whenever I compile my project. Everything still seems to run fine though. Just wondering if something is wrong or if this is normal. Compiling... Object.cpp WinMain.cpp c:\dxsdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800 Linking... BounceTest.exe - 0 error(s), 0 warning(s)
  
HRESULT hr;

hr = (DirectInput8Create(hInst, DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&g_pDI, NULL));
	
if (FAILED(hr))
{
	WriteToLog("ERROR initializing DirectInput8.");
	return FALSE;
}
  
As for as I can tell everything is done correctly. Is there anything wrong? Quiggy.
Igilima
Igilima
I get that too. Haven''t had any problems with ignoring it though so I would suggest just ignore it.
ktuluorion
ktuluorion
quote:
Original post by Igilima
I get that too. Haven''t had any problems with ignoring it though so I would suggest just ignore it.


There''s something in the dx docs about it if you take a look. I believe it has something to do if you don''t include something or define something, then it automatically defaults to the newest version of directinput, so you are fine with leaving it that way. I do.
[Piebert Entertainment] [Ask The All-Knowing Oracle A Question]------------------------------------------------------------GDSFUBY GameDev Society For UnBanning YodaTheCodaIf you want to see yoda unbanned then put this in your sig ------------------------------------------------------------DAIAGA Dave Astle is a God Association. To join, put this in your sig!Founder and High Priest o
Quiggy
Quiggy
ok, turn ignore on... :-)

Thanks guys.
IFooBar
IFooBar
Dont worry about that warning. But if you want it to go away, just put this before you include dinput.h
#define DIRECTINPUT_VERSION 0x0800
and your warning is gone


:::Al:::
[Triple Buffer V2.0] - Resource leak imminent. Memory status: Fragile
[size=2]aliak.net

Topic Locked

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

Sign in to reply to this topic.