Hello. This is my second plea for help on this subject, the first round was very helpful in eliminating all the linker errors, however, now i have a bigger problem.
Something is failing in the inital Direct Input object creation.
I am attempting to create a class wrapper around DInput8 and it''s compiling and even linking fine (I''m using the [sorry if I massacre the spelling] Fotsch libs].
Here is the code in qestion:
bool InputSystem::Initalize(HWND hWnd, HINSTANCE hAppInstance, bool isExclusive,
DWORD flags)
{
// create a DI opject
// otherwise return false
if(FAILED(DirectInput8Create( hAppInstance, // the handle of the app instance
DIRECTINPUT_VERSION, // input version
IID_IDirectInput8, // whaever this is -- could someone answer this part too?
(LPVOID*)&lpDI8, // the LPDirectinput8 object
NULL))) // we don''t need the com stuff)
{
return false;
}
which is called from this:
Input->Initalize(hWnd, hInstance, true, IS_USEMOUSE | IS_USEKEYBOARD)
If you think you recognizze this it''s because im creating it based on the wrapper in the OpenGL Game Programing book.
my problem is it never gets past this point... could someone who''s figured out this conundrum please help me?
by the way, I like doing things the hard way so please no RAD development helper tool thingies please.
Thanks in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To all of those who think I''m just being contradictory:
No I''m not!