GUI in C++

windows form GUI in C++

Page 1 of 1

12 Replies - 7138 Views - Last Post: 27 February 2010 - 09:02 PM Rate Topic: *---- 1 Votes

#1 gnelkia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 13-January 10

GUI in C++

Posted 23 February 2010 - 07:35 PM

Dear All,

first of all, i and new to GUI and i would like to build a GUI with C++ language. and i have choose windows form to do it.

by make use of Visual C++, there are an easy job to create button, textbox and so on by just drag them into the GUI from the toolsbox.

however, i need help in how to make the pushbutton function as

when we press the button, it would allow us to choose a file from our computer directory.

anyone can tell me the code needed or show me any good reference site?

i have try to find in a lot of place, but i could not find any place which tell me directly what code to be used.

such as : textBox1->Text = "Hello from C++!"



Thank You so much~

Is This A Good Question/Topic? 0
  • +

Replies To: GUI in C++

#2 carltech  Icon User is offline

  • What did you call me?
  • member icon

Reputation: 28
  • View blog
  • Posts: 997
  • Joined: 19-October 07

Re: GUI in C++

Posted 23 February 2010 - 08:17 PM

http://www.winprog.o...rial/start.html - Win32 GUI tutorials
Was This Post Helpful? 0
  • +
  • -

#3 Anarion  Icon User is offline

  • The Persian Coder
  • member icon

Reputation: 305
  • View blog
  • Posts: 1,506
  • Joined: 16-May 09

Re: GUI in C++

Posted 24 February 2010 - 03:24 AM

If you wish to make it easier for yourself to write GUI, you may like to use libraries like QT or wxWidgets instead of the windows API.
Was This Post Helpful? 0
  • +
  • -

#4 aniri  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 54
  • View blog
  • Posts: 657
  • Joined: 24-November 09

Re: GUI in C++

Posted 24 February 2010 - 03:36 AM

http://msdn.microsof...wserdialog.aspx

I haven't used this function, but it seems to do exactly what you need. There's also an example in c++.
Was This Post Helpful? 0
  • +
  • -

#5 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 291
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: GUI in C++

Posted 24 February 2010 - 04:56 AM

View PostAnarion, on 24 February 2010 - 09:24 AM, said:

If you wish to make it easier for yourself to write GUI, you may like to use libraries like QT or wxWidgets instead of the windows API.

I agree, using wxWidgets means you can write cross platform code that you can port to iMacs, Linux, etc instead of being confined to Windows platforms
Was This Post Helpful? 1
  • +
  • -

#6 gnelkia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 13-January 10

Re: GUI in C++

Posted 24 February 2010 - 09:06 AM

Thanks all..

honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??

thanks all.. thank you so much..
Was This Post Helpful? 0
  • +
  • -

#7 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 291
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: GUI in C++

Posted 24 February 2010 - 09:13 AM

View Postgnelkia, on 24 February 2010 - 03:06 PM, said:

Thanks all..

honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??

thanks all.. thank you so much..

I tend to use Code::Blocks as my main IDE
http://www.codeblocks.org/

and then instal wxPack
http://wxpack.source.../Main/Downloads

which includes wxWidgets and wxSmith (a GUI builder for wxWidgets)
Was This Post Helpful? 0
  • +
  • -

#8 gnelkia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 13-January 10

Re: GUI in C++

Posted 24 February 2010 - 07:49 PM

View Posthorace, on 24 February 2010 - 08:13 AM, said:

View Postgnelkia, on 24 February 2010 - 03:06 PM, said:

Thanks all..

honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??

thanks all.. thank you so much..

I tend to use Code::Blocks as my main IDE
http://www.codeblocks.org/

and then instal wxPack
http://wxpack.source.../Main/Downloads

which includes wxWidgets and wxSmith (a GUI builder for wxWidgets)




Hi there, thank you for your information. i am downloading the wxpack.. can i know is that QT and wxpack are both lib for GUI in C++ ??

what should i do after i download it ?

thank you.
Was This Post Helpful? 0
  • +
  • -

#9 RH-00  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 8
  • Joined: 26-April 09

Re: GUI in C++

Posted 24 February 2010 - 08:00 PM

View Postgnelkia, on 24 February 2010 - 08:06 AM, said:

Thanks all..

honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??

thanks all.. thank you so much..


No, Qt is an IDE, much like Code::Blocks, Visual Studio, or Dev-C++. It allows you to develop GUI applications with C++ far more easily than you could just using the Win32 API, with the added benefit of portability to other systems. For more information, check out the Qt homepage.
Was This Post Helpful? 1
  • +
  • -

#10 gnelkia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 13-January 10

Re: GUI in C++

Posted 24 February 2010 - 08:17 PM

View PostRH-00, on 24 February 2010 - 07:00 PM, said:

View Postgnelkia, on 24 February 2010 - 08:06 AM, said:

Thanks all..

honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??

thanks all.. thank you so much..


No, Qt is an IDE, much like Code::Blocks, Visual Studio, or Dev-C++. It allows you to develop GUI applications with C++ far more easily than you could just using the Win32 API, with the added benefit of portability to other systems. For more information, check out the Qt homepage.



Thank you.
so i see.. QT sound like another standalone software for creating GUI than a lib for Visual C++.. am i right ?

Actually i have create a program in Visual C++.. for execute and processing the image for some output. it works nice in command prompt .. now i would like to move them into GUI...

is this can be done by using QT ?
Was This Post Helpful? 0
  • +
  • -

#11 gnelkia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 13-January 10

Re: GUI in C++

Posted 25 February 2010 - 02:59 AM

View Postaniri, on 24 February 2010 - 02:36 AM, said:

http://msdn.microsof...wserdialog.aspx

I haven't used this function, but it seems to do exactly what you need. There's also an example in c++.


Thanks for the link.
i have read through the example and also the related references.. this is more to select a folder..
but actually i would like to prompt user for select a file..

thank you so much..
Was This Post Helpful? 0
  • +
  • -

#12 Anarion  Icon User is offline

  • The Persian Coder
  • member icon

Reputation: 305
  • View blog
  • Posts: 1,506
  • Joined: 16-May 09

Re: GUI in C++

Posted 25 February 2010 - 04:39 AM

View PostRH-00, on 25 February 2010 - 05:30 AM, said:

View Postgnelkia, on 24 February 2010 - 08:06 AM, said:

Thanks all..

honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??

thanks all.. thank you so much..


No, Qt is an IDE, much like Code::Blocks, Visual Studio, or Dev-C++. It allows you to develop GUI applications with C++ far more easily than you could just using the Win32 API, with the added benefit of portability to other systems. For more information, check out the Qt homepage.

Just a little correction here, QT is not an IDE, it's a GUI framework :)
but it has an IDE named QT builder available to download. [ Link ]
Was This Post Helpful? 0
  • +
  • -

#13 gnelkia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 13-January 10

Re: GUI in C++

Posted 27 February 2010 - 09:02 PM

i found out that there is an function OpenFileDialog could be used in selecting file.
can anyone tell me how is this OpenFileDialog could be use ?

i have search on several website.. but the example code just not work on my program.. is there any special declaration needed ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1