| | |
how to use windows.h
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 5
Reputation:
Solved Threads: 0
Can some one give me some code on how to use windows.h..... im making my project, about ATM, i want to make it look good so i need some code on how the use windows header. I saw this person using a goto(x,y) code... and I saw his exe file. and there were textbox images in there.. So can anybody help this noob dev c user.....
>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.
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.
I'm here to prove you wrong.
what compiler do you have ? You can get some old MS-DOS stuff here. They are not tutorials but actual working example programs.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
>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.
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.
I'm here to prove you wrong.
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: Dec 2006
Posts: 1,089
Reputation:
Solved Threads: 164
you could try ncurses http://tldp.org/HOWTO/NCURSES-Progra...ml#WHATCANWEDO
![]() |
Similar Threads
- messed up windows... again! (Windows NT / 2000 / XP)
- Apache For Windows (Linux Servers and Apache)
- Windows Remote Desktop (Networking Hardware Configuration)
Other Threads in the C++ Forum
- Previous Thread: problem with iterator
- Next Thread: Statically modifying a dll?
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






