Can anybody explain me why the compiler can't make my programm.<br>Error :[Lieur Erreur] Unresolved external '_c_dfDIMouse' referenced from D:\PROGRAMMATION\C++\POKEMON\UNIT1.OBJ.<br>I have include dinput.h.<br><br>Look at this code :<br><br> HRESULT hr;<br> hr = DirectInputCreate( HInstance , DIRECTINPUT_VERSION, &g_pDI, NULL );<br> if ( FAILED(hr) )<br> return hr;<br> hr = g_pDI->CreateDevice( GUID_SysMouse, &g_pMouse, NULL );<br> if ( FAILED(hr) )<br> return hr;<br> hr = g_pMouse->SetDataFormat( &c_dfDIMouse ); // The error come from here...<br> if ( FAILED(hr) )<br> return hr;<br> hr = g_pMouse->SetCooperativeLevel( hDlg,DISCL_EXCLUSIVE ¦ DISCL_FOREGROUND);<br> if ( FAILED(hr) )<br> return hr;<br><br>Remark than I can't use all predifinded parameter :<br><br> c_dfDIKeyboard <br> c_dfDIMouse <br> c_dfDIMouse2 <br> c_dfDIJoystick <br> c_dfDIJoystick2<br> <br>I absolute need an anwer because in my game, I need to retrive the position of the mouse and the classical API don't work when you're under DirectX.<br>