Jump to content

  • Log In with Google      Sign In   
  • Create Account

[Question] Creating a windows application in c++?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 jacknbiecdr   Members   -  Reputation: 111

Like
0Likes
Like

Posted 23 March 2013 - 03:33 PM

do you think WIN32 API is good for windows application?



Sponsor:

#2 Servant of the Lord   Crossbones+   -  Reputation: 21004

Like
2Likes
Like

Posted 23 March 2013 - 03:34 PM

Nope. Try Qt or wxWidgets. wink.png

 

Win32 will certainly work, but it'll be alot of pain. Whatever you do, there'll be a learning curve, but IMO, Win32 is so low level that it's more of a learning wall than a curve.

Qt and wxWidgets are at a higher level of abstraction that makes it easier to get things up and running, while still retaining the same flexibility and power, with the added benefit of being cross-platform to Windows, Macintosh, and Linux.

 

Your mileage may vary.


Edited by Servant of the Lord, 23 March 2013 - 03:38 PM.

It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#3 Paradigm Shifter   Crossbones+   -  Reputation: 5435

Like
2Likes
Like

Posted 23 March 2013 - 03:46 PM

Small dialog based apps aren't too bad, since the DefaultDialogProc handles quite a bit for you. Unless you just want to create a canvas for DirectX or openGL or whatever.

 

Otherwise, don't do it. It's tedious.

 

I'd use C# if I wanted a big Windows application these days. I used to do MFC in C++ but that was painful.


"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

#4 jacknbiecdr   Members   -  Reputation: 111

Like
0Likes
Like

Posted 23 March 2013 - 04:50 PM

i just recently search about good api creator and found this QT very interesting and now downloading. thank you for the reply very much appreciated :)



#5 EddieV223   Members   -  Reputation: 1407

Like
1Likes
Like

Posted 23 March 2013 - 05:02 PM

Even libraries like Qt will use win32 ( on windows ) some where inside but it is abstracted away.  So why reinvent the wheel?  If you don't have a specific reason to work with win32, then you probably shouldn't.  Qt is a great library, so is wxWidgets.

 

I prefer Qt, it's easy to work with, has LOTs of other functionality not just GUI stuff.  Also has a cross platform IDE that IMO is second only to VS.


Edited by EddieV223, 23 March 2013 - 05:02 PM.

If this post or signature was helpful and/or constructive please give rep.

 

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

 

// Easy to learn 2D Game Library c++

SFML2.1 Download http://www.sfml-dev.org/download.php

SFML2.1 Tutorials http://www.sfml-dev.org/tutorials/2.1/

 

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

 


#6 0r0d   Members   -  Reputation: 819

Like
1Likes
Like

Posted 23 March 2013 - 07:08 PM

I've never used Qt, but wxWidgets is pretty nice.  I recommend that one over win32.



#7 Khatharr   Crossbones+   -  Reputation: 3039

Like
0Likes
Like

Posted 23 March 2013 - 09:57 PM

The first time I encountered Win32 I sincerely contemplated firebombing the MS campus.

 

It's second nature now, but there should at least be a warning label IMO.


void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

#8 Servant of the Lord   Crossbones+   -  Reputation: 21004

Like
3Likes
Like

Posted 23 March 2013 - 11:59 PM

The first time I encountered Win32 I sincerely contemplated firebombing the MS campus.

 

It's second nature now, but there should at least be a warning label IMO.

 

What's second nature? Win32, or desiring to incinerate Microsoft? laugh.png


It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#9 Khatharr   Crossbones+   -  Reputation: 3039

Like
0Likes
Like

Posted 24 March 2013 - 01:39 AM

The first time I encountered Win32 I sincerely contemplated firebombing the MS campus.

 

It's second nature now, but there should at least be a warning label IMO.

 

What's second nature? Win32, or desiring to incinerate Microsoft? laugh.png

 

Oh, you caught that one, did you? wink.png


void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

#10 GeneralQuery   Crossbones+   -  Reputation: 1263

Like
0Likes
Like

Posted 24 March 2013 - 04:56 AM

For a simple "game window" Win32 really isn't that bad at all. For anything beyond a simple canvas for rendering then go with a higher level framework. If it's a full on Windows-style GUI app then I'd be more inclined to go for another language like C# (but that's just me).



#11 Eliad Moshe   Members   -  Reputation: 813

Like
1Likes
Like

Posted 26 March 2013 - 02:57 PM

One more thing that you should consider when choosing your GUI platform is the license  of each GUI library and/or API .
 
Qt for example, has a dual license:
0. A paid-comercial license provided by digia for pure proprietary software.
1. A LGPL license that forces the folowing restrictions (for commercial applications):
You must->
0. Expose the interfaces for the free software components to end users.
1. Povide your app's object files.
2. Encapsulate the free software components inside a dynamic link library.
(If and only if you distribute your software to others)
 
GTK+ which is really brilliant, has a LGPL license as well.
 
WxWidgets has it's own license that lets you release your proprietary software without the need to expose anything as long as you disterbute your app in a binary form.
 
A word in regards to the win32 API:
 
The windows API gives you, by far, more power and flexibility than any other API listed (in the cost of implementing a huge set of things by yourself), 
for Windows operating systems.
It is true that it has a quite steep learning curve, although it is brilliantly documented, rich, fast and beautiful !
Also, it is required if you attempt to create a pure DirectX application. 
+ you can release your GUI components without any restrictions.

Edited by Eliad Moshe, 26 March 2013 - 03:51 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS