Salut a tous!
Je pogramme en visual C++ 6.
Je désire créer un objet directinput, mais je ne sais pas comment récupérer le handle d'instance de mon application:
// HINSTANCE g_hinst; // initialized earlier.... la est mon problème!
HRESULT hr;
LPDIRECTINPUT8 g_lpDI;
hr = DirectInput8Create(g_hinst, DIRECTINPUT_VERSION,
IID_IDirectInput8, (void**)&g_lpDI, NULL);
if FAILED(hr)
{
// DirectInput not available; take appropriate action
}
Ma question donc: Comment acquérir g_hinst?
merci!