Error upon calling SDL_Init

I am using Visual Studio.NET 7.1.3088 on a Windows 2K Pro system. I am
working on getting SDL working on the machine. I have been able to get a
simple Win32 console app compiled, linked, and running. However, as soon as
I call SDL_Init() function, I get the following error.

Entry Point Not Found
Procedure entry point GetRawInputDeviceList could not be located in the
dynamic link library USER32.dll

Here is the code that creates the error on my system. Any and all help will
be appreciated.
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_mixer.h>
#include <SDL_ttf.h>
#include <stdio.h>
#include <stdlib.h>

void InitSDL(void);

int main(int argc, char *argv[])
{
InitSDL();
SDL_Quit();
exit(0);
}

void InitSDL(void)
{
fprintf(stderr, “Starting the SDL initializing…\n”);
if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO) == -1)
{
fprintf(stderr, “Could not initialize SDL: %s\n”,
SDL_GetError());
exit(-1);
}

printf(stderr, "SDL Initialized....\n");

}

According to MSDN, GetRawInputDeviceList() is only available in Windows XP,
or later. I don’t see this function called anywhere in the SDL source code.

At 3/5/2004, Jason Brunson wrote:>I am using Visual Studio.NET 7.1.3088 on a Windows 2K Pro system. I am

working on getting SDL working on the machine. I have been able to get a
simple Win32 console app compiled, linked, and running. However, as soon as
I call SDL_Init() function, I get the following error.

Entry Point Not Found
Procedure entry point GetRawInputDeviceList could not be located in the
dynamic link library USER32.dll

Not sure if it helps,but I am running on SDL 1.2.7

Thanks,
Jason> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
Jon Willeke
Sent: Friday, March 05, 2004 4:59 PM
To: sdl at libsdl.org
Subject: Re: [SDL] Error upon calling SDL_Init

According to MSDN, GetRawInputDeviceList() is only available in Windows
XP,
or later. I don’t see this function called anywhere in the SDL source
code.

At 3/5/2004, Jason Brunson wrote:

I am using Visual Studio.NET 7.1.3088 on a Windows 2K Pro system. I am

working on getting SDL working on the machine. I have been able to get

a simple Win32 console app compiled, linked, and running. However, as
soon as I call SDL_Init() function, I get the following error.

Entry Point Not Found
Procedure entry point GetRawInputDeviceList could not be located in the

dynamic link library USER32.dll


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Interesting update to the post…

I copy and pasted the code from my original post to a different machine of
the same specs (1.2.7, Win2K, VS.NET 2003) and the code compiled and ran
with no error. Therefore, I am guessing that maybe there is a patch or .NET
library on the other system causing the error.

Thanks for the help,
Jason> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of Jon
Willeke
Sent: Friday, March 05, 2004 4:59 PM
To: sdl at libsdl.org
Subject: Re: [SDL] Error upon calling SDL_Init

According to MSDN, GetRawInputDeviceList() is only available in Windows XP,
or later. I don’t see this function called anywhere in the SDL source code.

At 3/5/2004, Jason Brunson wrote:

I am using Visual Studio.NET 7.1.3088 on a Windows 2K Pro system. I am
working on getting SDL working on the machine. I have been able to get
a simple Win32 console app compiled, linked, and running. However, as
soon as I call SDL_Init() function, I get the following error.

Entry Point Not Found
Procedure entry point GetRawInputDeviceList could not be located in the
dynamic link library USER32.dll


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl