Win Opengl Problems WAS Re: Savage4 OpenGL not accelera ted on Win32

Hi,

Well, I had a similar problem and the following solution was suggested to
me. It worked for me on NT and win9x. May it’ll work for you in win2000.

om------
------ Suggested Solution:

“Oisin Mulvihill” <Oisin.Mulvihill at trintech.com> wrote

The keyboard still isn’t working in nt or 95 however
I’ve managed to get it working in linux and BeOs. It
just doesn’t appear to cause any events when I press it.
I’ve seen mention of a function SDL_RegisterApp()which
is supposed to fix this problem however, I can’t find
it in the SDLdocs or the documentation on the SDL site,
can anyone help please?

yeah, it’s not documented, it is buried in the code though
and exported in the library. again, i believe the recommended
way is to link with the SDLmain.lib, but i’ve gotten it working
without that, and here is the snipped code to get it registered.

/****************** near the top ***************/

#ifdef _WIN32 /msvc defined _WIN32/
#define WIN32_LEAN_AND_MEAN
#include<windows.h>
extern int SDL_RegisterApp(char*, Uint32, void*);
#endif

/************* during the initialize ***********/

#ifdef _WIN32
SDL_RegisterApp(“MyGameClass”, 0, GetModuleHandle(NULL));
#endif
SDL_Init(…);

/***********************************************/

cut n’ paste


------ Finish.

----- Original Message -----
From: Dan Gudmundsson [mailto:dgud@erix.ericsson.se]
Sent: Wednesday, November 15, 2000 2:01 PM
To: sdl at lokigames.com
Subject: Re: Win Opengl Problems WAS Re: [SDL] Savage4 OpenGL not
accelerated on Win32

Updating the video drivers helped,
now opengl works on win2000…

Now if I only could get the keyboard events to show up,
everything would be perfect…

I probably have a very special case, since I’m writing
a wrapper around SDL to be dynamic linked into *erlang.

If I create a separate process for the SDL stuff and
communicate with it via pipes it workes great but when
I use it as a dll the keyboard events don’t show up…

Anyone have any ideas??

Atleast solaris and linux works as it should :slight_smile:

/Dan
*erlang www.erlang.org