Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DirectInput

1 view
Skip to first unread message

Anton Roth

unread,
Sep 17, 2008, 11:51:11 AM9/17/08
to
I have a problem with the following code:

#include "dinput.h"

// DirectInput
#define SAMPLE_BUFFER_SIZE 16 // arbitrary number of buffer elements
LPDIRECTINPUT8 g_pDI = NULL;
LPDIRECTINPUTDEVICE8 g_pMouse = NULL;


Error C2146: Syntax Error: missing ";" before 'g_pDI'


Now why does it give me that error? I included dinput8.lib in the project,
and i still can't get it to work.

Anton Roth

unread,
Sep 17, 2008, 12:41:42 PM9/17/08
to
"Anton Roth" <Cand...@gmx.de> schrieb im Newsbeitrag
news:OAzrQ1N...@TK2MSFTNGP06.phx.gbl...


nvm, i found it after comparing step by step with the tutorial, some b.s.
with the project properties.

0 new messages