hi, i have a cuestion, how i can make a window in c++,
thank you
hi, i have a cuestion, how i can make a window in c++,
thank you
how about with no apis used? using only the standard libraries? is it possible?
There is nothing in the c++ standard libraries to make windows.
gcc -lalleg
http://www.ciusa.net/~jrgrant/
That's right, although glass or maybe perspex works quite well.
Uhhmmm..
You must have read something wrong.
When you create a Windows project in Dev C++, you've created a window.
Only add hello world or something, and *hocus pocus* there you go.
.. zzz soooo tireed.
Josh did not read anything wrong. This is using the Win32 API. It's not as if that window is magically created.When you create a Windows project in Dev C++, you've created a window.
but how did the win32 api did it with their functions? they used C anyways?
Yes, they probably used C or C++ to code the OS which is what makes the windows and manages them.Originally posted by mickey
but how did the win32 api did it with their functions? they used C anyways?
The win32 api allows other programmers to create windows as well.
A computer is set up in layers like so
hardware <--> OS <--> programs <--> user
the OS tells the hardware what to do, what to draw on screen
programs tell the OS to make windows, and then the OS draws these on screen by controlling the hardware.
users give input to the programs
ehm, what if i do not want to use the win32 api, but to create a window manually without any api? how would i go about doing that?
you cant
the window is never created if theres no code.
Like I said, there is no window functions in the standard library, you have to use API or another library. I prefer win32 API.
gcc -lalleg
http://www.ciusa.net/~jrgrant/
ei guys,
okey probably my qusetion is wrong, how can i make a window, without any help from any API, is this can be done using C/C++? in short, i wanna know how CreateWindow() makes a window
thanks,
You think that that Windows O/S magically creates windows? What are windows? They are graphics. The Windows O/S was coded with a mixture of ASM and C/C++ because, like josh said, there are no [graphics] functions in the C/C++ langauge. The only way to do graphics without an API is through ASM. With ASM you can access hardware directly thereby giving you direct access to the video controller. The C/C++ langauge only gives you memory, disk, and I/O access.Yes, they probably used C or C++ to code the OS which is what makes the windows and manages them.
"The mind, like a parachute, only functions when open."