Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 19th, 2014, 5:39 PM   #1
Prophet
One appears to be.
 
Prophet's Avatar
 
Join Date: Jan 2013
Location: Zimbabwe
Posts: 52
Rep Power: 5 Prophet is on a distinguished road
How to create GUI programs?

Hi.

how does one create GUI programs for Windows ? You know teh ones like notepad++, Skype, Torrent clients, Unreal engine, anti virus software clients and the like.

They all have buttons, menus, links, options, display fields, text, images.

Knowing C++, how would I make a program like that using the basic tehcnologies, (no super-easy libraries or editors) ?

I think WinAPI might have something to do with it, but from what I believe it would not have enough elements to make all that those programs have. I do not know WinAPI though.
Prophet is offline   Reply With Quote
Old Dec 20th, 2014, 4:28 AM   #2
pritaeas
mod_pritaeas
 
Join Date: May 2009
Location: The Netherlands
Posts: 251
Rep Power: 9 pritaeas is on a distinguished road
Re: How to create GUI programs?

Quote:
Originally Posted by Prophet View Post
I think WinAPI might have something to do with it, but from what I believe it would not have enough elements to make all that those programs have. I do not know WinAPI though.
I suggest you read up on it, it contains a lot more than you think.
pritaeas is offline   Reply With Quote
Old Dec 20th, 2014, 4:48 PM   #3
Smjprogrammer
Learning Very Basic Stuff
 
Smjprogrammer's Avatar
 
Join Date: Jan 2010
Location: United States
Posts: 978
Rep Power: 8 Smjprogrammer is on a distinguished road
Re: How to create GUI programs?

I would be nice to see some code on here for a change. If you have anything by all means post it.
__________________
HP Laptop / AMD A4 - 3305 APU with Radeon HD Graphics 1.90 Ghz
Windows 10 64-Bit
Visual Studio Community 2015
Recommended Books - C++ All-In-One For Dummies / Webster's Computer Dictionary
Smjprogrammer is offline   Reply With Quote
Old Jan 4th, 2015, 2:31 PM   #4
sixstringartist
Programming Guru

 
Join Date: Jun 2005
Posts: 1,333
Rep Power: 14 sixstringartist will become famous soon enough
Re: How to create GUI programs?

Quote:
Originally Posted by Smjprogrammer View Post
I would be nice to see some code on here for a change. If you have anything by all means post it.
In this case, specific code samples are somewhat complicated by the use of libraries, some of which are platform specific. A simple message box is simple to demonstrate using win32 api's, but most studios use more expansive libraries that build upon win32 or similar.

c++ Syntax (Toggle Plain Text)
  1. #include <windows.h>
  2.  
  3. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  4. LPSTR lpCmdLine, int nCmdShow)
  5. {
  6. MessageBox(NULL, "Hello!", "Note", MB_OK);
  7. return 0;
  8. }

Obviously this is windows specific and if that is your development platform I recommend looking into MFC. That said, It is also common to chose a language more tailored to rapid development for GUI's. C++ is certainly capable, but front-end gui's do not require the performance C++ offers leaving Python, Java, and C# more common choices for your run-of-the-mill 2D gui's. Unreal Engine is a different use case, as more multimedia driven applications such as games.
sixstringartist is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a GUI nathanlikesmoney C 8 Jul 13th, 2012 8:25 AM
Calling a matlab gui from python using pymatlab without allowing python to close it imperialguy Python 0 Jun 8th, 2011 6:58 PM
GUI problem. Fall Back Son Java 18 Jul 23rd, 2008 3:38 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:28 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC