tags:

views:

430

answers:

9

Is there a simple/small framework (Other than .NET) which allows you to create windowed applications with C++ under Win32. Just like a little DLL I can include with my app.

It should have basic functions like creating a window , buttons , text edits and handling them.

+1  A: 

There are some:

  1. MFC
  2. QT
  3. wxWidgets
Pablo Santa Cruz
+6  A: 

WTL is a set of lightweight templates that make writing Win32 windowing code quite easy (to the extend C++/Win32 can be easy).

Franci Penov
Which one is the easiest one?
Nick Brooks
Lol, WinForms. But it requires .NET. You said no .Net, so you are stuck with WTL or with one of the other options people listed below.
Franci Penov
Ah, I love WTL :-)
unforgiven3
+2  A: 

How about MFC? mfc90.dll. Not exactly simple, not small, but comes with huge support from VS wizards and designers.

Remus Rusanu
MFC is hell. If you choose this, may the force be with you.
the_drow
I really like MFC. The code is very complex but VS helps you design your application so it is not that much of a problem.
Nick Brooks
I found the document/view metaphor and the command dispatch mechanism to be still years ahead of anything the .Net frameworks have produced, 20 years later.
Remus Rusanu
MFC is a horrible piece of waste. It is mainly an old wrapper over the Windows API, invented back in the says where there was nearly no template support and other nice C++ features.Qt vs MFC is like a Bugatti Veyron vs Renault 4CV.
iconiK
A: 

Well, a simple framework is Paul DiLascia's Windows++ (http://www.dilascia.com/wpp.htm), altough I think it's development has stopped long time ago.

Another method would be using just the Windows API without any framework at all. Just include windows.h in your sourcefile and there you go!

dwo
Yes, that stopped. Paul passed away a year ago, a big loss. Windows++ is still awesome though.
Hans Passant
I didn't know that he passed away, just thought he retired."If this code works, it was written by Paul DiLascia. If not, I don't know who wrote it."
dwo
+2  A: 

Take a look at Win32++

Nemanja Trifunovic
+9  A: 

I would recommand Qt. It's an intuitive and user friendly framework. In addition it is cross platform if one day you want to deploy your app anywhere else.

Qt can be used through Visual Studio or through the QtCreator IDE installed with the framework (as well as QtDesigner [GUI editor]).

Patrice Bernassola
Does it really qualify as "simple/small framework"?
Nemanja Trifunovic
Yes it is simple to use and since it is split into several module you can only use the one you want (in the case of Nick the QtGUI one does the stuff of windowing)
Patrice Bernassola
A: 

Try John Torjo's eGUI framework.

Josh Kelley