Archived

This topic is now archived and is closed to further replies.

take a look at this

This topic is 6082 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I posted earlier about my Direct Input problems, but I think the problems were bigger than just that. So I worked my input into a class, a new project, tried to compile. No errors, but it just hangs. Now, I uploaded my code to a temporary tripod site. If anyone would be kind enough to take a look at the files and examine my code, I would appreciate it. http://members.tripod.com/Calypso134 I didn''t include any project file, since most people are on vs6 and I''m on 7(no DSW files, just vcproj). The files linked are: opengl32.lib glu32.lib glaux.lib dxguid.lib dinput8.lib This is off nehe''s first tutorial, just to see if my input will work. Any feedback/answers would be very appreciated. Thanks

Share this post


Link to post
Share on other sites
I''m not an expert but this might help...
Change from:

OLD:
-----------------------------------------------------------------
public:
LPDIRECTINPUT8 g_DI;
LPDIRECTINPUTDEVICE8 g_KDIDev;

CInput();
~CInput();

HRESULT DI_Create();
void DI_Destroy();
};
#endif INPUT_H
-----------------------------------------------------------------

NEW:
-----------------------------------------------------------------
public:
IDirectInput8 * g_DI;
IDirectInputDevice8 * g_KDIDev;

CInput();
~CInput();

HRESULT DI_Create();
void DI_Destroy();
};
#endif INPUT_H
-----------------------------------------------------------------
HOPE THIS HELPS :-)!!!!

Share this post


Link to post
Share on other sites
quote:
Original post by SpooKsta

I''m not an expert but this might help...
Change from:

OLD:
-----------------------------------------------------------------
public:
LPDIRECTINPUT8 g_DI;
LPDIRECTINPUTDEVICE8 g_KDIDev;

CInput();
~CInput();

HRESULT DI_Create();
void DI_Destroy();
};
#endif INPUT_H
-----------------------------------------------------------------

NEW:
-----------------------------------------------------------------
public:
IDirectInput8 * g_DI;
IDirectInputDevice8 * g_KDIDev;

CInput();
~CInput();

HRESULT DI_Create();
void DI_Destroy();
};
#endif INPUT_H
-----------------------------------------------------------------
HOPE THIS HELPS :-)!!!!


That will probably not help as LPDIRECTINPUT8 & LPDIRECTINPUTDEVICE8 do the exact same thing as doing IDirectInput8 * & IDirectInputDevice8 *.

the LP... commands are just macros that define a IDirectInput8 pointer.

This is just my 2 cents worth...




"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

Share this post


Link to post
Share on other sites
I think cyber is right, it just hangs the same way it does. It used to give me the first message box error, but now it just hangs and I have to CTRL alt delete out.

Share this post


Link to post
Share on other sites