how make a window in c++

This is a discussion on how make a window in c++ within the C++ Programming forums, part of the General Programming Boards category; hi, i have a cuestion, how i can make a window in c++, thank you...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    7

    how make a window in c++

    hi, i have a cuestion, how i can make a window in c++,

    thank you

  2. #2
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    142
    how about with no apis used? using only the standard libraries? is it possible?

  4. #4
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    There is nothing in the c++ standard libraries to make windows.

  5. #5
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    That's right, although glass or maybe perspex works quite well.

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    23

    Josh? Are you awake?

    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.

  7. #7
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    When you create a Windows project in Dev C++, you've created a window.
    Josh did not read anything wrong. This is using the Win32 API. It's not as if that window is magically created.

  8. #8
    Registered User
    Join Date
    Apr 2002
    Posts
    142
    but how did the win32 api did it with their functions? they used C anyways?

  9. #9
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    Originally posted by mickey
    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.

    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

  10. #10
    Registered User
    Join Date
    Apr 2002
    Posts
    142
    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?

  11. #11
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    you cant

  12. #12
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    the window is never created if theres no code.

  13. #13
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    Like I said, there is no window functions in the standard library, you have to use API or another library. I prefer win32 API.

  14. #14
    Registered User
    Join Date
    Apr 2002
    Posts
    142
    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,

  15. #15
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210
    Yes, they probably used C or C++ to code the OS which is what makes the windows and manages them.
    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.
    "The mind, like a parachute, only functions when open."

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  2. my wndProc is out of scope
    By Raison in forum Windows Programming
    Replies: 35
    Last Post: 06-25-2004, 08:23 AM
  3. Make window in VB but make program in C/C++?
    By Boomba in forum Windows Programming
    Replies: 1
    Last Post: 06-23-2004, 01:29 AM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 05:10 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21