Wrox Programmer Forums
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 27th, 2004, 04:37 AM
Authorized User
Join Date: Jun 2004
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hlchuah77
Default GUI question

hello, is there any way for me to create button, list box, etc using C++? If yes,what applications to be used? Visual C++? Borland C++? or... ?

Reply With Quote
  #2 (permalink)  
Old September 27th, 2004, 06:32 AM
Authorized User
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts

With Borland C++ it's all automatic using the built-in 'workshop'
Just click on the .RC file and ask for what you need!

Reply With Quote
  #3 (permalink)  
Old October 4th, 2004, 07:10 PM
Authorized User
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths


 Sure you can create a GUI in C++. Judging by your choice of development tools, I am going to assume you are targeting windows and respond accordingly:

  The most protable way to create a GUI using C++ would probably be to use the Win32 API, calling functions such as CreateWindow() or CreateWindowEx() -- you can look up the exact usage of these functions on MSDN ( msdn.microsoft.com ) -- however the Win32 API is procedural ( not object oriented) and can be a pain to work with, unless you are a GUI programmer ( as opposed to just wanting to whack together some database forms real quick, or an easy front-end for your progy that does a lot of processing).
  nokmois mentioned Borland's built in workshop -- Visual C++ has a similar GUI creation tool / form editor built in, and a rich library of classes that encapsulate the Win32 API ( MFC ). Also, there are 3rd party tools / libraries available, some of them free, including GTK which originated on Linux and was ported to Windows ( hint: use this and you can port your apps back and forth relatively painlessly, assuming you don't use any other platform-specific libs), and QT which is completely object-oriented ( but I'm still kinda hung up on their event passing mechanism). I think QT requires you purchase a commericial license for commercial development, though.

Meredith Shaebanyan

Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gui program P.Wheat Windows Server 0 February 23rd, 2008 11:06 PM
C# GUI Seperation lesliev C# 0 September 17th, 2006 03:03 PM
Reusability of GUI hums .NET Framework 2.0 0 October 20th, 2004 05:51 AM
help in GUI khfarooq Java GUI 5 August 22nd, 2004 05:00 AM
very basic gui wiggins Java GUI 1 August 27th, 2003 12:14 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.