Skip to main content
gamedev.net
🔒 Locked

DirectInputProblem

Started by curwen May 8, 2003 at 6:40 PM 0 replies 200+ views
Original Post
curwen
curwen
I''m experiencing a strange error... Could someone please explaine me me what''s wrong... The code : #include<input.h> LPDIRECTINPUT8 lpDI8 ; LPDIRECTINPUTDEVICE8 lpDIDV8 ; HRESULT hr ; extern HINSTANCE hGlobalInstance ; void Initialize_Input(void) { hr = DirectInput8Create(hGlobalInstance,DIRECTINPUT_VERSION,IID_IDirectInput8,(void**)&lpDI8,NULL); //do other things } and this is the error I get : --------------------Configuration: unisoft - Win32 Debug-------------------- Compiling... input.c C:\msvc++pro\unisoft\input.c(10) : error C2115: ''function'' : incompatible types C:\msvc++pro\unisoft\input.c(10) : warning C4024: ''DirectInput8Create'' : different types for formal and actual parameter 3 Error executing cl.exe. Creating browse info file... unisoft.exe - 1 error(s), 1 warning(s) I''ve the the headers and Libs included (I mean dinput.h diguid.lib,dinput8.lib) Thanks Curwen

Topic Locked

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

Sign in to reply to this topic.