tags:

views:

51

answers:

2

i want to make a windows application in ansi c but suffering with graphic usage is ansi c able to handle the graphics of windows without using any extra lib. guide line required.

+1  A: 

The original Windows API was written to be accessed via C, that was the main language for developing Windows apps back in the day. I can't immediately see why you couldn't use ANSI C to write graphical Windows programs.

I was worried about GDI+ (I've never used it from C), so looked it up. It says it's a class-based API "...for C/C++ programmers." Taken literally, that would mean you can use C to access it (otherwise it's for C++ programmers, but not C programmers), but you'd want to look closely to be sure they're not just being loose with their language there.

T.J. Crowder
+3  A: 

ANSI (or more modernly ISO) C is the language standard. It doesn't deal with graphics, at all.

However, you sure can write graphical applications with C (the language). On Windows you have the Win32 API, and there are also cross-platform libraries like GTK, which you can use to create graphical applications on Windows (as well as on other OSes).

Eli Bendersky