I'm currently trying to teach myself how to code in C. I'm using Visual Studio 2012 since it's the easiest thing for me to get ahold of at the moment (if anyone has any ideas for a free IDE let me know).

So most of this stuff is just the few things that I've been able to take from online sources. But I'm getting an error when trying to use the COORD structure:

error C2275: 'COORD' : illegal use of this type as an expression

I didn't write the following function. I found it online in an attempt to find a substitute for gotoxy, which is in a library that I don't have.

The function:
void SetPosition(int X, int Y)
{
HANDLE Screen;
Screen = GetStdHandle(STD_OUTPUT_HANDLE);
COORD Position={X, Y};

SetConsoleCursorPosition(Screen, Position);
}


Any comments or help would help!