-
...my line func...
hey my line function compiles and everything but when i call it, it does not draw a line, here is the code:
void draw(int x1, int y1, int x2, int y2)
{
tagPOINT pts[2] ;
pts[0].x = x1 ;
pts[0].y = y1 ;
pts[1].x = x1 ;
pts[1].y = y1 ;
CONSOLE_SCREEN_BUFFER_INFO csbi ;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE) ;
GetConsoleScreenBufferInfo(hConsole, &csbi) ;
Polyline((HDC)hConsole, pts, 2) ;
}
anyone have a clue?
-
The console can't do win32 API GDI functions (like Polyline).
-
-
i'ved tried all the graphic libs in the source section of the site, but the program has an error every time i run it. i use MVC++ 6.0
since i am using a console app can i use assembly to draw graphics?
-
No, the only graphics the console is capable of is ASCII (drawing with characters).
-