Hi
I am preparing a console project that needs to use gotoxy and text / =
background color functions due to its aim -> the application will be =
pack of DOS based windows. buttons, menus etc (like norton commander).
However when I put all classes in different files let's say Button.h =
Button.cpp and Window.h Window.cpp and CheckBox.h CheckBox.cpp which all =
derivate from major Object class and try to complie I get error on =
linking stating that I have multiple definition of clrscr, clreol etc =
(from files conio.c).
I must say I used "#ifndef .. #define... #endif " clause on Object class =
including conio.c. But the problem still exist.=20
When I put all classes into one file that's fine than.=20
I would greatly appreciate if anybody could help me.=20
What's more - if there any other way to move around console window and =
change background please tell me as my teacher is dissaponted that I use =
funtions basing on handles as conio.c does it...
At last I can copy gotoxy, and graphical functions from conio.c directly =
to object class but I'd rather don't do it.
Thanks a lot for any advice
Lukasz. |