Try to add this first:
SDL::init(SDL_INIT_VIDEO); [download]
In reply to Re: Setting Video Mode in SDL by PeterPeiGuo in thread Setting Video Mode in SDL by SomeNetworkGuy