screen resolution in c++
<p>I made a simple game in C++ using SDL 1.2, and I used functions from wtypes.h to get display resolution, and then set game resolution at it's value. The problem is that when i compile it, exe file (my game's resolution) is dependent on resolution of computer it's compiled on. So when i copy exe file to another computer and it's run, the game resolution will be the same as my computer's resolution, not that computer's (unless they have same resolution). Is there a way get display resolution at runtime? I understand I can simply compile my cpp file at that computer, but that requires C:B/VS, dll files and linking dll files :/</p>