Hi!
I have a problem. I''m trying to use the directInput but when I try to use DirectInputCreate I get Identifier unknown. Why is that?
I have included dinput.h and DINPUT.LIB DXGUID.LIB WINMM.LIB.
PS I use MSVC++
Thank you for the help. I dont know what parameters DirectInput8Create takes please tell me.
DirectInputCreate should take this:
if(FAILED(DirectInputCreate(hinstance_app,DIRECTINPUT_VERSION,&lpdi,NULL)))
{
return(0);
}
DirectInputCreate should take this:
if(FAILED(DirectInputCreate(hinstance_app,DIRECTINPUT_VERSION,&lpdi,NULL)))
{
return(0);
}
No prob!
Don''t you have the SDK help? It should''ve come with the SDK Learn to use it, it''s your best friend!
If you search for DirectInput8Create you''ll find:
HRESULT WINAPI DirectInput8Create(
HINSTANCE hinst,
DWORD dwVersion,
REFIID riidltf,
LPVOID* ppvOut,
LPUNKNOWN punkOuter
);
}+TITANIUM+{
Don''t you have the SDK help? It should''ve come with the SDK Learn to use it, it''s your best friend!
If you search for DirectInput8Create you''ll find:
HRESULT WINAPI DirectInput8Create(
HINSTANCE hinst,
DWORD dwVersion,
REFIID riidltf,
LPVOID* ppvOut,
LPUNKNOWN punkOuter
);
}+TITANIUM+{
Thank you! I have the SDK but I can''t understand it, that''s the problem :-( I hope I''ll lern it somedag. If you can please expain
REFIID riidltf,
LPVOID* ppvOut,
REFIID riidltf,
LPVOID* ppvOut,
quote:
REFIID riidltf,
LPVOID* ppvOut,
Rriidltf = your idenitifer for DX8 Input
ppvOut = pointer to pointer to out. Ie:
IDirectInput8* Input = NULL;
//--- code ---
if(FAILED(hr=DirectInput8Create(HInstance,/*rest of junk*/,
&Input/*etc*/)) {
------------------------------
BCB DX Library - RAD C++ Game development for BCB
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement