Sign in to follow this  
RLS0812

Creating GUI **Without** Using Microsoft API

Recommended Posts

RLS0812    3043
I want to create a custom GUI for my application, that does *NOT* use anything tied to Microsoft ( libraries, redistributables, frame works, e.t.c. ). It's mainly an issue of copyright and compatibility problems.

I have looked on Google for quite some time for the answer, but have found nothing relevant.

Any help on finding this information would be greatly appreciated - thanks. Edited by Shippou

Share this post


Link to post
Share on other sites
NightCreature83    5002

Have a look at QT, which should be open source or wxWidgets these are multiplatform libraries written by third party people. With any application however at some point your are going to have to talk to the underlying OS or runtime (I am excluding most embeded systems here) for displaying things or talking to disc or other things the OS deals with.

Share this post


Link to post
Share on other sites
lauris71    841

Which programming laguage(s) are you using?

How heavy-duty will this GUI be? Will it just be some forms, lists, buttons or do you need to implement your own specific controls?

Qt is good choice. I personally prefer Gtk+. WxWidgets is also free cross-platform widget set.

Share this post


Link to post
Share on other sites

I also suggest Qt, with is under LGPL (so it can be used for free, even commercially). It's C++, cross-platform (Windows, Mac, Linux - not yet on Android or iPhone but it's being worked on by the community), uses native widgets (meaning on Windows it looks like a native Windows app, on Mac OSX it looks like a native Mac OSX app, and so on), and can be styled very easily to customize the appearance using a CSS-like language. It has superb documentation, and multiple active and helpful communities around it.

 

If you go the Qt route, I suggest using the QtCreator IDE. It's very good IDE, and has a great wizarding system for application creation (but you aren't required to use it).

 

qt-project.org

Share this post


Link to post
Share on other sites
jwezorek    2663

I agree with Bregma that the OP needs to be clearer. You can't write a program for Windows that does " *NOT* use anything tied to Microsoft" ... Meaning, even if you develop to Qt using Qt Creator etc. if you build for windows when you run the windows executable CreateWindow(...) is going to get called somewhere, just not by your code. 

Share this post


Link to post
Share on other sites

Totally true. Even if you had zero GUI, and were using pure vanilla standard C++, compiled with a non-Microsoft compiler, your program would still (in most cases) be using Microsoft's C++ runtime. smile.png

Even MinGW uses Microsoft's C++ runtime. 

"It's mainly an issue of copyright and compatibility problems."

Microsoft doesn't own your code if you use Win32 - what copyright issues are you referring to?

For compatibility issues, or more specifically, for cross-platform code, I recommend Qt. If you're not talking about cross-platform compatibility, then I agree with the others that more clarity is needed for your question to be answered.

Share this post


Link to post
Share on other sites
LennyLen    5715

Another pertinent question is are you using any libraries such as Allegro, SFML or SDL as there are GUI addons for those as well that might be easier to integrate with your projects than QT, etc.

Share this post


Link to post
Share on other sites
Satharis    2444

As has been stated you literally cannot use a GUI without interfacing with Microsoft code somehow. As far as I'm aware you can't actually make a running Window without calling the win32 methods for it -somewhere- and everything that does wraps that at some point.

 

I don't know whether to take the OP as a serious copyright question or someone being pessimistically anti-microsoft or something, I honestly had a bit of a laugh when I initially read that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this