Troubles !

I'm using Visual Basic 5.0, I'm trying to write a console
application in it. I translated the VC++ code into Visual
Basic format, added "Types" and API Declarations and then
compiled and changed the App mode to Console User
Interface. Text printing was all right, text inputing
worked, but gotoxy() and clrscr() didn't work! What can I
do now?

The code below was the code I used:

Public Type COORD
x As Integer
y As Integer
End Type

Public Type SMALL_RECT
Left As Integer
Top As Integer
Right As Integer
Bottom As Integer
End Type

Public Type CONSOLE_SCREEN_BUFFER_INFO
dwSize As COORD
dwCursorPosition As COORD
wAttributes As Integer
srWindow As SMALL_RECT
dwMaximumWindowSize As COORD
End Type

may i ask something??

i had try the code n it's work...thx
but somthing bothering me that i dont know what does its statement mean. esp. -SetConsoleTextAtribute-. any one can help me to find out the description for this syntax....

If you want to use this in VC++ 5.0...

A friend and I are sitting here in class and he wanted to use your color thing to create a line of characters in his program that flickers different colors. The problem is, whatever was the last color he chose, the compiler made the entire thing that color. We found though that this problem is solved - so far as we can tell - by using 'printf' instead of 'cout'. I am posting here to let any other VC++ 5.0 users know this, but also to see if anyone has an answer as to why the compiler did this.