Jump to content

Out of the command prompt

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Hydroplasma

Hydroplasma

    Newbie

  • Members
  • Pip
  • 2 posts
Can somebody please tell me how I can program out of the command prompt with C++? I know how to use the language and I've programmed quite a bit but only for a CMD, so I was wondering how I can actually get onto the next step and get a window to display. Currently I'm using a program called NoteBlocks to write code.

#2
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
Look up GUI libraries for C++.
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:

#3
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Writing GUI programs with pure C or C++ is pretty difficult, tedious, and time consuming. The easiest way to do it is by using a compiler or language that is designed for GUI programming, for example vc++ 2010 using Windows Forms and QT for cross-platform portability (there are several others too). If you want to write games then you would use a library such as OpenGL (which is cross platform) or DirectX (I think its MS-Windows only).
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.

#4
Hydroplasma

Hydroplasma

    Newbie

  • Members
  • Pip
  • 2 posts
So if I wanted use DirectX for writing games, do you know where I could start? Should I download some kind of development kit from the website?

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You'll just need to #include the appropriate DirectX headers, and learn the function calls.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
The last time I checked you have to download (free) the DirectX SDK, and that contains lots of example programs and tutorials. Just use google and you will find the download link
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users