>Can some one give me some code on how to use windows.h....
windows.h is one of the headers you use for the Win32 API. It's not something you can learn with just a bit of sample code. This is a good start, though.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
what compiler do you have ? You can get some old MS-DOS stuff here . They are not tutorials but actual working example programs.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>do u have a less complicated website???
That's about as simple as it gets. You're asking to do a complicated task, why would you expect the API to be simple?
>do u know a website just makes lines, or txtbox something on just the exe, not on a GUI form....
You have text (as in console text), and graphics. Pick one. There are no other options, you can't just say you want to draw a line without first creating a canvas and then using a graphics API to do the drawing[1]. You can open a message box from a console program, but lines require GDI, and GDI requires more than a console.
[1] Well, you can, but that involves basically riding the hardware.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
We can draw straight lines and boxes with simple c or c++ console programs because MS-DOS supports the Extended Ascii character set (characters above 127 decimal). But forget doing circles, curves or anything more complicated with standard console programs.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287
> im having a problem on how to use the NCURSES... I have problems on compiling it... Too many errors...
> Im using Dev C++ compiler..
a bit of searching the web reveales that there is a Dev-C++ DevPak for pdcurses.
pdcurses is another implementation of curses; therefore you could use it instead.
the download: http://sourceforge.net/project/showfiles.php?group_id=94270&package_id=154278&release_id=515268
i do not use Dev-C++ nor do i know about Dev-C++ DevPaks; so i do not know what are the things you have to do after downloading it to get it working. but i guess there must be an easy way to do it.
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287