Jump to content

create a new window without window.h

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic

#1
Kalanij

Kalanij

    Newbie

  • Members
  • Pip
  • 7 posts
Any1 know how to do that??

Most source codes i've come across make use of window.h, I'm very curious on how to do that, plus it would contribute a lot to my project.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It depends on your OS (I'm assuming Windows). You need to use the API, which will probably require you to include an appropriate header, such as window.h.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
solartic

solartic

    Learning Programmer

  • Members
  • PipPipPip
  • 95 posts
Posted via CodeCall Mobile well since there is no standard way to create window in c/c++ u will have to use an external gui library such as windows.h,wxwidgets, qt so basically u can't avoid using an external library there are drag and drop tools for these libraries that u can use to create windows visually

#4
Kalanij

Kalanij

    Newbie

  • Members
  • Pip
  • 7 posts
what are the gui libraries for this kind of stuff, I'm checking GTK but I'm having some trouble...

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
There are a LOT of them. solartic mentioned several of the best known.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
Kalanij

Kalanij

    Newbie

  • Members
  • Pip
  • 7 posts
mind mentioning some?

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
As I said, solartic mentioned several (scroll up).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
Kalanij

Kalanij

    Newbie

  • Members
  • Pip
  • 7 posts
other than the ones he mentioned, I already checked the ones solartic mentioned

#9
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts

http://en.wikipedia..../Widget_toolkit
GUI toolkit C++ - Google Search
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#10
carly

carly

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
It has no sense at all to use an external lib to just create a window !!!
Windows.h is just an include for Win32 api, which is the base in Windows

#11
Kalanij

Kalanij

    Newbie

  • Members
  • Pip
  • 7 posts
i don't want to use windows.h
I want to write that library myself

#12
Feral

Feral

    Programmer

  • Members
  • PipPipPipPip
  • 162 posts
To create a window you have to have access to the operating systems structure. The only way to assess the structure of the program is to use its api. Since you have to use its api you must use the libraries that come with the api.

In the case of windows the access to that api is windows.h, the function included in that file are what you need to create the window. It makes no sense to try and create something as low level as the function needed to simply create a window.

Even if you wanted to create a directX window you still need to include windows.h.

Perhaps if you explained what you are wanting to do a little better then we could help you out more.