I need to develop a Gui application but I have three problems:
1) I'll have to use only C language.
2) I cannot use GTK.
3) I cannot use any other Compiler than Turbo C/C++. (College restriction :/)
Is there any solution for this ?
I am using Windows Operating system.

- 925
- 1
- 12
- 28
2 Answers
Yes you can , The library you'll have to use is called #include "graphics.h" . It's a very primitive library and there are methods ( or functions I should rather say ) for Decorating Text , outputting pixels and drawing very primitive shapes .
for eg) drawCircle(int x,int y, int radius) where x and y are the co-ordinates of the circle
The origin of the co-ordinate system lies to the top left of the Black screen that appears when you press Run on turbo C . It increases towards the right as the x co-ordinate and towards the bottom as the y co-ordinate .
There are no inbuilt functions for translations so if you will have to animate by first drawing a completely black shape over the exact shape you want to move , then move the shape's co-ordinate and then draw it again. There are a host of other things and you can check it out in the help index

- 55
- 9
It depends on the GUI system you want.
If you want something similar to todays' GUI then you can use the graphics.h
library as sugested by user1771825.
However if you prefer a more console or dos look, i.e., a text based GUI, then just use instructions like textcolor
, textbackground
, window
and such, or use inline assembler to control the foreground and background colors, text positions and the rest.
This is what I used back then to build pull downs menus, dialogs and windows.

- 42
- 6
Does this Turbo version support Windows API ? – Sam Jun 15 '14 at 20:48