SDL_GetWMInfo() not implemented?

Hi,

I’m doing the following:

SDL_SysWMinfo info;
SDL_VERSION( &info.version );
if( !SDL_GetWMInfo( &info ) )
{
throw std::exception( “Failed to obtain HWND from SDL (InputRegistry)”
);
}

However, the exception is always thrown. Why is SDL_GetWMInfo() not working?

Never mind, I’m a clown. I was calling it before SDL was initialized.On Dec 3, 2007 1:12 PM, Robert Dailey <@Robert_Dailey> wrote:

Hi,

I’m doing the following:

SDL_SysWMinfo info;
SDL_VERSION( &info.version );
if( !SDL_GetWMInfo( &info ) )
{
throw std::exception( “Failed to obtain HWND from SDL (InputRegistry)”
);
}

However, the exception is always thrown. Why is SDL_GetWMInfo() not
working?