Kylotan kylotan at kylotan.eidosnet.co.uk
Wed Aug 8 06:21:01 PDT 2001

> >  int res = _putenv("SDL_VIDEODRIVER=windib");
> (What's with the underscore?)

_putenv isn't an ANSI function, apparently, and the underscore indicates
that it is platform dependent.

> Try:
> set SDL_VIDEODRIVER=windib

That works. So, obviously I have windib support, but setting the
environment variable doesn't. (Even though I check for the return code
and it is fine. MSDN says "_putenv and _wputenv return 0 if successful,
or -1 in the case of an error.")


More information about the SDL mailing list