Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
I'm working on a analog clock but all the examples use graphics.h.

i can't use graphics.h that doesn't work.
How do i make a analog clock without graphics.h.
Posted
Comments
Richard MacCutchan 19-Oct-12 6:02am    
It won't be easy. However, there are plenty of samples that use the Windows API, Google will help you find them.
Sergey Alexandrovich Kryukov 19-Oct-12 13:29pm    
As several people already asked: it can be BGI -- please see my answer.
--SA
enhzflep 20-Oct-12 4:07am    
Look at Hans Dietrich's articles on the same here at Code Project.
XCPClock

Lots of good stuff in there. Transparency, anti-aliasing, skinning - oh, and a clock too. :p
Member 14346578 29-Apr-19 13:31pm    
How I write code for Analog watch in c program without using graphics.h?

Quote:
i can't use graphics.h that doesn't work.

However you may use the Graphics class of the GDI+[^] library (provided you'll switch to C++ for Windows).
If you are stuck with C then you may use the GDI primitives.
You may find several examples of analog clock applications[^] written this way.
 
Share this answer
 
If this is what I think, this header file is for Borland Graphics Interface, BGI. It was quite a bad library for MS DOS, widely uses when there was very little graphics interfaces available. Presently, totally obsolete and not supported by any version of modern OS. There are some simulators though, and some loosers still use them; it happens very rarely. If you are not one of them, ask about something else; indicate you OS.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900