Help with coords please

Jul 21, 2013 at 2:53pm
So I want a program to start at a sertain coord on the screen how do I do that? I've never needed to do that before can any one tell me please?
Jul 21, 2013 at 2:59pm
Start doing what? You would probably need a graphics library (I would recommend SFML or SDL). Also, you would need a solid knowledge of c++.
Jul 21, 2013 at 3:01pm
I need just a code that once you open the exe it starts at certain coords on you screen. I'm coding in Dev c++ and code blocks
Last edited on Jul 21, 2013 at 3:02pm
Jul 21, 2013 at 3:01pm
This is a platform dependent thing. You need to deal with the OS API to position application windows.

If you're on Windows, check out the MoveWindow function:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633534(v=vs.85).aspx

For any other operating system, you'll have to search for the API call that does the same thing.
Jul 21, 2013 at 3:42pm
Thanks this was exactly what I needed.
Jul 21, 2013 at 4:21pm
Oh it's not I'm not using a window I forgot what it's called but it's like cmd
Last edited on Jul 21, 2013 at 4:21pm
Jul 21, 2013 at 5:13pm
@Vincent Dominguez

Take a look at
http://v2.cplusplus.com/forum/beginner/106842/
where I show a function called gotoXY(x,y), that positions text at column x, row y. This should be what you're needing..
Jul 21, 2013 at 5:28pm
That is neat but sadly no I need the window like thing to start at certain coordinates.
Jul 22, 2013 at 8:37am
thanks to all.... because i also needed these types of information...
Topic archived. No new replies allowed.