For every error there is a solution. Have you tried looking for installation guides or anything?
But you might find something usable with SDL or DirectX APIs, though using a whole game engine that does most of the things you need might be best idea (such as the bare.game, or castle engine etc).