Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7095 > unrolled thread

Is C++ suitable for GUI programs?

Started byRaymond <mechian31@gmail.com>
First post2011-06-23 23:28 -0700
Last post2011-06-30 23:51 -0700
Articles 20 on this page of 25 — 17 participants

Back to article view | Back to comp.lang.c++


Contents

  Is C++ suitable for GUI programs? Raymond <mechian31@gmail.com> - 2011-06-23 23:28 -0700
    Re: Is C++ suitable for GUI programs? Werner <werasm@gmail.com> - 2011-06-23 23:54 -0700
      Re: Is C++ suitable for GUI programs? Öö Tiib <ootiib@hot.ee> - 2011-06-26 08:58 -0700
        Re: Is C++ suitable for GUI programs? "MikeP" <mp011011@some.org> - 2011-06-28 14:51 -0500
        Re: Is C++ suitable for GUI programs? Werner <werasm@gmail.com> - 2011-06-30 03:46 -0700
        Re: Is C++ suitable for GUI programs? Cholo Lennon <chololennon@hotmail.com> - 2011-06-30 10:31 -0300
    Re: Is C++ suitable for GUI programs? Goran <goran.pusic@gmail.com> - 2011-06-24 00:14 -0700
    Re: Is C++ suitable for GUI programs? Rune Allnor <allnor@tele.ntnu.no> - 2011-06-24 00:22 -0700
    Re: Is C++ suitable for GUI programs? Noah Roberts <dont@email.me> - 2011-06-24 09:29 -0700
      Re: Is C++ suitable for GUI programs? "MikeP" <mp011011@some.org> - 2011-06-25 10:59 -0500
        Re: Is C++ suitable for GUI programs? Noah Roberts <dont@email.me> - 2011-06-27 15:33 -0700
      Re: Is C++ suitable for GUI programs? "MikeP" <mp011011@some.org> - 2011-06-25 11:12 -0500
    Re: Is C++ suitable for GUI programs? "Paul" <pchristor@yahoo.co.uk> - 2011-06-24 19:07 +0100
    Re: Is C++ suitable for GUI programs? Andy Champ <no.way@nospam.invalid> - 2011-06-24 21:23 +0100
      Re: Is C++ suitable for GUI programs? Nobody <nobody@nowhere.com> - 2011-06-24 22:06 +0100
      Re: Is C++ suitable for GUI programs? "Chris M. Thomasson" <cristom@charter.net> - 2011-06-24 21:22 -0700
        Re: Is C++ suitable for GUI programs? Andy Champ <no.way@nospam.invalid> - 2011-06-26 23:01 +0100
      Re: Is C++ suitable for GUI programs? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-26 20:43 +0000
    Re: Is C++ suitable for GUI programs? Virchanza <virtual@lavabit.com> - 2011-06-28 05:49 -0700
    Re: Is C++ suitable for GUI programs? hanukas <jukka@liimatta.org> - 2011-06-28 06:10 -0700
    Re: Is C++ suitable for GUI programs? Virchanza <virtual@lavabit.com> - 2011-06-28 06:22 -0700
    Re: Is C++ suitable for GUI programs? Lynn McGuire <lmc@winsim.com> - 2011-06-28 11:11 -0500
    Re: Is C++ suitable for GUI programs? Virchanza <virtual@lavabit.com> - 2011-06-29 10:07 -0700
      Re: Is C++ suitable for GUI programs? drew@furrfu.invalid (Drew Lawson) - 2011-06-29 17:49 +0000
    Re: Is C++ suitable for GUI programs? hanukas <jukka@liimatta.org> - 2011-06-30 23:51 -0700

Page 1 of 2  [1] 2  Next page →


#7095 — Is C++ suitable for GUI programs?

FromRaymond <mechian31@gmail.com>
Date2011-06-23 23:28 -0700
SubjectIs C++ suitable for GUI programs?
Message-ID<iu1aun$j3c$1@speranza.aioe.org>
So I've heard that creating GUI programs in C++ is quite difficult.

I need to implement JPEG with a GUI to select settings and display the 
image.  We're encouraged to use Visual C++ or Java because they're more 
suited to multimedia.  I'm thinking of using C++ (don't know it yet) 
cause it's faster but since the GUI is a big part of it and considering 
how difficult it is... I'm not sure.  I do know Java and some C#.

Would it be better to create a GUI in C# and have C++ to do the processing?

[toc] | [next] | [standalone]


#7096

FromWerner <werasm@gmail.com>
Date2011-06-23 23:54 -0700
Message-ID<ee91e442-3d4b-45dd-a427-fe5fd752c386@e35g2000yqc.googlegroups.com>
In reply to#7095
On Jun 24, 8:28 am, Raymond <mechia...@gmail.com> wrote:
> So I've heard that creating GUI programs in C++ is quite difficult.
>
> I need to implement JPEG with a GUI to select settings and display the
> image.  We're encouraged to use Visual C++ or Java because they're more
> suited to multimedia.  I'm thinking of using C++ (don't know it yet)
> cause it's faster but since the GUI is a big part of it and considering
> how difficult it is... I'm not sure.  I do know Java and some C#.
>
> Would it be better to create a GUI in C# and have C++ to do the processing?

We use Qt4 and that seems quite easy to work with. For
graphing we use Qwt Graph. I know of other good C++ GUI
libraries that exist too, but we've mainly used Qt.

Regards,

Werner

[toc] | [prev] | [next] | [standalone]


#7174

FromÖö Tiib <ootiib@hot.ee>
Date2011-06-26 08:58 -0700
Message-ID<469c32db-d9db-4d98-8bdb-2cc47793ef05@22g2000yqv.googlegroups.com>
In reply to#7096
On Jun 24, 9:54 am, Werner <wer...@gmail.com> wrote:
> On Jun 24, 8:28 am, Raymond <mechia...@gmail.com> wrote:
>
> > So I've heard that creating GUI programs in C++ is quite difficult.
>
> > I need to implement JPEG with a GUI to select settings and display the
> > image.  We're encouraged to use Visual C++ or Java because they're more
> > suited to multimedia.  I'm thinking of using C++ (don't know it yet)
> > cause it's faster but since the GUI is a big part of it and considering
> > how difficult it is... I'm not sure.  I do know Java and some C#.
>
> > Would it be better to create a GUI in C# and have C++ to do the processing?
>
> We use Qt4 and that seems quite easy to work with. For
> graphing we use Qwt Graph. I know of other good C++ GUI
> libraries that exist too, but we've mainly used Qt.

+1 to that. It is piece of cake to throw fine looking and portable C++
GUI together using Qt tools. It is not too hard to embed a GUI module
that is made with Qt into existing application that has most GUI made
with MFC.

One (pseudo-)issue that i have encountered is that Qt never destroys
some of its singletons so Visual Studio's debugger reports these as
leaked. It can be silenced by turning the leak-detection temporarily
off when the singletons are allocated. Other issue is that the amount
of tinkering that is needed to embed non-Microsoft tools into VS IDE
is growing from version to version. IDE that is losing ability to
integrate tools? Other, well-known free and open source IDEs may pass
Visual Studio that way.

C++/CLI don't look at, it is very sad monster language. The Microsoft
tools often hide that it is C++/CLI and call it "C++ with managed
extensions enabled" and other such nonsense. That makes C++/CLI a good
tool for discrediting C++. C++ is fine, platform neutral language and
has nothing to do with C++/CLI. Take C# when you target .Net as
platform, it wins C++/CLI in all aspects.

[toc] | [prev] | [next] | [standalone]


#7215

From"MikeP" <mp011011@some.org>
Date2011-06-28 14:51 -0500
Message-ID<iudbe9$lp8$1@dont-email.me>
In reply to#7174
Öö Tiib wrote:

> C++/CLI don't look at, it is very sad monster language. The Microsoft
> tools often hide that it is C++/CLI and call it "C++ with managed
> extensions enabled" and other such nonsense. That makes C++/CLI a good
> tool for discrediting C++. C++ is fine, platform neutral language and
> has nothing to do with C++/CLI. Take C# when you target .Net as
> platform, it wins C++/CLI in all aspects.

C# is easily decompiled, so if you have any trade secret code, C# is a 
bad choice. 

[toc] | [prev] | [next] | [standalone]


#7276

FromWerner <werasm@gmail.com>
Date2011-06-30 03:46 -0700
Message-ID<3bd67220-a050-4992-b3a8-b4e6fc7fb194@h25g2000prf.googlegroups.com>
In reply to#7174
On Jun 26, 5:58 pm, Öö Tiib <oot...@hot.ee> wrote:

> > We use Qt4 and that seems quite easy to work with. For
> > graphing we use Qwt Graph. I know of other good C++ GUI
> > libraries that exist too, but we've mainly used Qt.
>
> +1 to that. It is piece of cake to throw fine looking and portable C++
> GUI together using Qt tools. It is not too hard to embed a GUI module
> that is made with Qt into existing application that has most GUI made
> with MFC.

I can't comment on that. I've often used native windows (win32) for
low level things (mutexes, timers, sockets, serial, threads), but
I've never used it for windows programming, except to receive
windows messages:

::CreateWindow( MSGWINNAME, "", WS_DISABLED, 0, 0, 0, 0, 0x0, 0, 0,
0 );

> One (pseudo-)issue that i have encountered is that Qt never destroys
> some of its singletons so Visual Studio's debugger reports these as
> leaked. It can be silenced by turning the leak-detection temporarily
> off when the singletons are allocated. Other issue is that the amount
> of tinkering that is needed to embed non-Microsoft tools into VS IDE
> is growing from version to version. IDE that is losing ability to
> integrate tools? Other, well-known free and open source IDEs may pass
> Visual Studio that way.

Yes, I use QtCreator with mingw to setup/compile my project and I
(at this moment) enjoy editing in Eclipse.

> C++/CLI don't look at, it is very sad monster language.

C++/CLI... What's that? ;-). No, seriously - I can't comment on
something that I've never even remotely looked at. If I would
consider another language, it would be Java, but simply because
I can't seem to buy a PC or notebook (aside from a mac) without
a pre-installed OS anymore (and I regard that "skelm" -
unethical). Apart from that, If I buy software(especially the OS)
I expect it to outlast it's installbase. MS licensing
prohibits this, not? "Skelms!" ;-).

But that is a discussion for a different group/different day...

Regards,

Werner








[toc] | [prev] | [next] | [standalone]


#7291

FromCholo Lennon <chololennon@hotmail.com>
Date2011-06-30 10:31 -0300
Message-ID<iuhtr7$vvk$1@speranza.aioe.org>
In reply to#7174
On 26/06/2011 12:58, Öö Tiib wrote:
> On Jun 24, 9:54 am, Werner<wer...@gmail.com>  wrote:
>> On Jun 24, 8:28 am, Raymond<mechia...@gmail.com>  wrote:
>>
>>> So I've heard that creating GUI programs in C++ is quite difficult.
>>
>>> I need to implement JPEG with a GUI to select settings and display the
>>> image.  We're encouraged to use Visual C++ or Java because they're more
>>> suited to multimedia.  I'm thinking of using C++ (don't know it yet)
>>> cause it's faster but since the GUI is a big part of it and considering
>>> how difficult it is... I'm not sure.  I do know Java and some C#.
>>
>>> Would it be better to create a GUI in C# and have C++ to do the processing?
>>
>> We use Qt4 and that seems quite easy to work with. For
>> graphing we use Qwt Graph. I know of other good C++ GUI
>> libraries that exist too, but we've mainly used Qt.
>
> +1 to that. It is piece of cake to throw fine looking and portable C++
> GUI together using Qt tools. It is not too hard to embed a GUI module
> that is made with Qt into existing application that has most GUI made
> with MFC.
>
> One (pseudo-)issue that i have encountered is that Qt never destroys
> some of its singletons so Visual Studio's debugger reports these as
> leaked. It can be silenced by turning the leak-detection temporarily
> off when the singletons are allocated. Other issue is that the amount
> of tinkering that is needed to embed non-Microsoft tools into VS IDE
> is growing from version to version. IDE that is losing ability to
> integrate tools? Other, well-known free and open source IDEs may pass
> Visual Studio that way.
>


> C++/CLI don't look at, it is very sad monster language. The Microsoft
> tools often hide that it is C++/CLI and call it "C++ with managed
> extensions enabled" and other such nonsense. That makes C++/CLI a good
> tool for discrediting C++.

I don't agree. C++/CLI is a very good tool (in contrast with the 
old/deprecated "Managed C++") to migrate code from native C++ to .Net 
universe.

> C++ is fine, platform neutral language and
> has nothing to do with C++/CLI.

Yeah, C++/CLI is not C++. They are distinct languages, but they have a 
lot of things in common.

> Take C# when you target .Net as
> platform, it wins C++/CLI in all aspects.
>

Not in all aspects. If someone needs a bridge between native and managed 
world, C++/CLI is by far the best option. Also C++/CLI has a better 
compiler than C#.


Regards


-- 
Cholo Lennon
Bs.As.
ARG

[toc] | [prev] | [next] | [standalone]


#7097

FromGoran <goran.pusic@gmail.com>
Date2011-06-24 00:14 -0700
Message-ID<d24fe3f5-0f0c-4c59-b944-9bd19339e565@m10g2000yqd.googlegroups.com>
In reply to#7095
On Jun 24, 8:28 am, Raymond <mechia...@gmail.com> wrote:
> So I've heard that creating GUI programs in C++ is quite difficult.
>
> I need to implement JPEG with a GUI to select settings and display the
> image.  We're encouraged to use Visual C++ or Java because they're more
> suited to multimedia.

Visual C++ is C++ language implementation _and_ additional libraries
_and_ development environment (editor, debugger, project management,
code navigation, source control...) So Visual C++ __is__ C++. It's
suited to multimedia because you have libraries for it that you can
use. But you have libraries for other C++ toolchains, too.

In other words, there's nothing in Visual C++ that inherently makes it
"suited to multimedia".

>  I'm thinking of using C++ (don't know it yet)
> cause it's faster but since the GUI is a big part of it and considering
> how difficult it is... I'm not sure.  I do know Java and some C#.

You don't know C++, but you say it's faster (than... I don't know
what)? Don't do suppose like that. Sure, __chances are__ that some C++
code will be faster when doing X than e.g. Java code, but in __no
way__ is this implied. In fact, if you have e.g. a good JPEG
processing library in Java, changes are, it will be faster, more
comprehensive and with less bugs than something I or you would come up
with C++.

> Would it be better to create a GUI in C# and have C++ to do the processing?

Do you know how to integrate them? If so, OK. If not, how will you do
it?

If you already know Java (or anything else), and are not sure e.g.
about C++, and you want good results, tend to stick with what you
know. Too much venturing into unknown is risky, and I feel thet's
exactly what you're doing here.

Goran.

[toc] | [prev] | [next] | [standalone]


#7098

FromRune Allnor <allnor@tele.ntnu.no>
Date2011-06-24 00:22 -0700
Message-ID<add0d266-7e67-452d-94f8-869d8c1ba6f3@q15g2000yqk.googlegroups.com>
In reply to#7095
On Jun 24, 8:28 am, Raymond <mechia...@gmail.com> wrote:

> So I've heard that creating GUI programs in C++ is quite difficult.

Define 'difficult'.

One main issue to consider is the availability of tools, with
documentation, to do the job. There are other toolchains for
making GUIs, that are far more popular than C++. Which means
these other tools are easier to come by, documentation is
easier to find, and help is easier to get, than if you
choose to use C++.

Whether that is a difficult property of the *language* C++
is a matter of semantics (I can't think of anything you can do
with another language, that you can not do with C++); it might
certainly be a difficulty when *working* with C++.

Rune

[toc] | [prev] | [next] | [standalone]


#7122

FromNoah Roberts <dont@email.me>
Date2011-06-24 09:29 -0700
Message-ID<4e04bb62$0$4022$cc2e38e6@news.uslec.net>
In reply to#7095
On 6/23/2011 11:28 PM, Raymond wrote:
> So I've heard that creating GUI programs in C++ is quite difficult.
>
> I need to implement JPEG with a GUI to select settings and display the
> image. We're encouraged to use Visual C++ or Java because they're more
> suited to multimedia. I'm thinking of using C++ (don't know it yet)
> cause it's faster but since the GUI is a big part of it and considering
> how difficult it is... I'm not sure. I do know Java and some C#.
>
> Would it be better to create a GUI in C# and have C++ to do the processing?

The GUI libraries that come with Visual C++ for the C++ language are 
VERY primitive.  They are ... tedious to work with.

If you use the C++/CLI language then you have access to the .Net UI 
library.  It's more modern.

You also have the option of 3rd party libraries like Qt or Wx.

[toc] | [prev] | [next] | [standalone]


#7156

From"MikeP" <mp011011@some.org>
Date2011-06-25 10:59 -0500
Message-ID<iu50kc$oqc$1@dont-email.me>
In reply to#7122
Noah Roberts wrote:
> On 6/23/2011 11:28 PM, Raymond wrote:
>> So I've heard that creating GUI programs in C++ is quite difficult.
>>
>> I need to implement JPEG with a GUI to select settings and display
>> the image. We're encouraged to use Visual C++ or Java because
>> they're more suited to multimedia. I'm thinking of using C++ (don't
>> know it yet) cause it's faster but since the GUI is a big part of it
>> and
>> considering how difficult it is... I'm not sure. I do know Java and
>> some C#. Would it be better to create a GUI in C# and have C++ to do
>> the
>> processing?
>
> The GUI libraries that come with Visual C++ for the C++ language are
> VERY primitive.  They are ... tedious to work with.

But (the Win32 API) is close to the OS, i.e., low-level. .Net is built on
top of the Win32 API.

>
> If you use the C++/CLI language then you have access to the .Net UI
> library.  It's more modern.

He'll have to decide on whether to use WinForms or WPF if he decides to
go with the higher-level MS APIs. When choosing those higher-level APIs,
one should seriously consider C# over C++ for C# is really geared toward
making GUI development using the VS IDE much easier than with C++.

>
> You also have the option of 3rd party libraries like Qt or Wx.

Which turns back the clock to the days of MFC and OWL, probably.


[toc] | [prev] | [next] | [standalone]


#7189

FromNoah Roberts <dont@email.me>
Date2011-06-27 15:33 -0700
Message-ID<4e090531$0$2385$cc2e38e6@news.uslec.net>
In reply to#7156
On 6/25/2011 8:59 AM, MikeP wrote:
> Noah Roberts wrote:

>> You also have the option of 3rd party libraries like Qt or Wx.
>
> Which turns back the clock to the days of MFC and OWL, probably.

Hardly.  I don't know OWL, but MFC lacks a great deal of very important 
constructs.  Even the basics like layout managers are missing.

[toc] | [prev] | [next] | [standalone]


#7157

From"MikeP" <mp011011@some.org>
Date2011-06-25 11:12 -0500
Message-ID<iu51ca$u6a$1@dont-email.me>
In reply to#7122
> On 6/23/2011 11:28 PM, Raymond wrote:
>> So I've heard that creating GUI programs in C++ is quite difficult.
>>
>> I need to implement JPEG with a GUI to select settings and display
>> the image. We're encouraged to use Visual C++ or Java because
>> they're more suited to multimedia. I'm thinking of using C++ (don't
>> know it yet) cause it's faster but since the GUI is a big part of it 
>> and
>> considering how difficult it is... I'm not sure. I do know Java and
>> some C#. Would it be better to create a GUI in C# and have C++ to do 
>> the
>> processing?

It depends on what "the processing" is. There's a bunch of .Net 
facilities that you may want to use and there are probably others that 
you wouldn't want to use. The .Net file system APIs are horrendous, IMO, 
for example. OTOH, if your "processing" is much lower level, number 
crunching, e.g, C++ sounds like a more fitting choice. Of course, not 
even mentioned yet is C++/CLI which is quite a different animal than C++, 
which you will want to consider.

There's nothing easy about making the above kinds of decisions. If there 
is time (as in, over the course of your development "career"), do a 
little of each and get a feel for the issues; not just general issues, 
but what the consequences mean for you and/or who ever you are 
programming for/with.


[toc] | [prev] | [next] | [standalone]


#7130

From"Paul" <pchristor@yahoo.co.uk>
Date2011-06-24 19:07 +0100
Message-ID<ko4Np.14130$J65.10296@newsfe14.ams2>
In reply to#7095
"Raymond" <mechian31@gmail.com> wrote in message 
news:iu1aun$j3c$1@speranza.aioe.org...
> So I've heard that creating GUI programs in C++ is quite difficult.
>
> I need to implement JPEG with a GUI to select settings and display the 
> image.  We're encouraged to use Visual C++ or Java because they're more 
> suited to multimedia.  I'm thinking of using C++ (don't know it yet) cause 
> it's faster but since the GUI is a big part of it and considering how 
> difficult it is... I'm not sure.  I do know Java and some C#.
>
> Would it be better to create a GUI in C# and have C++ to do the 
> processing?
>
Who is encouraging you to use VisualC++?

Visual C++ is,debatably, a term not a language. It is a term that can pretty 
much be summed up as meaning using MFC(Microsft foundation classes) and it 
is pretty much out of date  AFAIK.
VC++ and MFCs are microsoft specifc and if you are going that way I would 
use the more supported dotnet libraries (using C# or managed C++, both of 
which are easily interoperable).

Standard C++ can be used to write windows GUI's using the windows API , 
and/or DirextX api.  Which is what you would need to learn to gain and speed 
advantage over dotnet compiled programs.

If you already know java you could wirte 100 java swing programs (or 
whatrever the latest gui package is ) in the same time it would take you to 
learn C++ && windowsapi && directx. So stick with  java or C# for your 
assignment but by all means learn C++ too. Learning C++ will also give you a 
basic understanding of C and manged C++.

I learned C++ before Java and I finfd the Java inheritance system  a little 
back-to-front from C++ which is a little cofusing. You may find a reversal 
of the same going from Java to C++.
GL.




[toc] | [prev] | [next] | [standalone]


#7136

FromAndy Champ <no.way@nospam.invalid>
Date2011-06-24 21:23 +0100
Message-ID<YZ-dnW-n1uymb5nTnZ2dnUVZ8gCdnZ2d@eclipse.net.uk>
In reply to#7095
On 24/06/2011 07:28, Raymond wrote:
> Would it be better to create a GUI in C# and have C++ to do the processing?

That's exactly what we do on our project.  C++ gives us more of the 
bit-twiddling level of control that we need for our particular 
specialist application.  C# is designed to bolt onto the back of the 
GUI, and the .NET libraries do a pretty good job.  However be aware you 
are then tying yourself to Windows.

"I need to implement JPEG" - that sounds odd.  There must be hundreds of 
standard JPEG libraries out there, surely one does what you want.  Good 
compression is a real art.

Andy

[toc] | [prev] | [next] | [standalone]


#7138

FromNobody <nobody@nowhere.com>
Date2011-06-24 22:06 +0100
Message-ID<pan.2011.06.24.21.06.34.622000@nowhere.com>
In reply to#7136
On Fri, 24 Jun 2011 21:23:23 +0100, Andy Champ wrote:

> There must be hundreds of standard JPEG libraries out there

"Hundreds of" and "standard" are mutually contradictory. If there's a
"standard" JPEG library, it's either the one from the IJG (Independent
JPEG Group), or the one supplied as part of the OS (on Linux, that's the
IJG one). There might also be some other (i.e. non-standard) JPEG
libraries, but probably not hundreds of them.

[toc] | [prev] | [next] | [standalone]


#7143

From"Chris M. Thomasson" <cristom@charter.net>
Date2011-06-24 21:22 -0700
Message-ID<nodNp.3740$2K6.336@newsfe05.iad>
In reply to#7136
"Andy Champ" <no.way@nospam.invalid> wrote in message 
news:YZ-dnW-n1uymb5nTnZ2dnUVZ8gCdnZ2d@eclipse.net.uk...
> On 24/06/2011 07:28, Raymond wrote:
>> Would it be better to create a GUI in C# and have C++ to do the 
>> processing?
>
> That's exactly what we do on our project.  C++ gives us more of the 
> bit-twiddling level of control that we need for our particular specialist 
> application.  C# is designed to bolt onto the back of the GUI, and the 
> .NET libraries do a pretty good job.  However be aware you are then tying 
> yourself to Windows.

http://www.mono-project.com

[...] 

[toc] | [prev] | [next] | [standalone]


#7178

FromAndy Champ <no.way@nospam.invalid>
Date2011-06-26 23:01 +0100
Message-ID<O8OdnVxzApXaMZrTnZ2dnUVZ7r6dnZ2d@eclipse.net.uk>
In reply to#7143
On 25/06/2011 05:22, Chris M. Thomasson wrote:
> "Andy Champ"<no.way@nospam.invalid>  wrote in message
> news:YZ-dnW-n1uymb5nTnZ2dnUVZ8gCdnZ2d@eclipse.net.uk...
>> On 24/06/2011 07:28, Raymond wrote:
>>> Would it be better to create a GUI in C# and have C++ to do the
>>> processing?
>>
>> That's exactly what we do on our project.  C++ gives us more of the
>> bit-twiddling level of control that we need for our particular specialist
>> application.  C# is designed to bolt onto the back of the GUI, and the
>> .NET libraries do a pretty good job.  However be aware you are then tying
>> yourself to Windows.
>
> http://www.mono-project.com
>

Then I get a this-weeks-windows-standard-GUI app running under Linux (or 
wherever) not a local styled one.  Might do for some I suppose; We don't 
have this as a requirement.

Andy.

[toc] | [prev] | [next] | [standalone]


#7176

FromJorgen Grahn <grahn+nntp@snipabacken.se>
Date2011-06-26 20:43 +0000
Message-ID<slrnj0f6fr.gtj.grahn+nntp@frailea.sa.invalid>
In reply to#7136
On Fri, 2011-06-24, Andy Champ wrote:
> On 24/06/2011 07:28, Raymond wrote:
...

> "I need to implement JPEG" - that sounds odd.  There must be hundreds of 
> standard JPEG libraries out there, surely one does what you want.  Good 
> compression is a real art.

Which also includes security (coping with input explicitly designed to
break the decoder).

But surely this must be an advanced exercise in some algorithms
course? Although that doesn't explain why the assignment includes a
GUI, which would just divert attention from the main task.

The way I'd do it is to implement command-line tools just like the
standard cjpeg and djpeg, jpegtran etc in C++. Then do a quick hack of
a GUI in some language, not necessarily C++. That GUI would execute
the command-line tools.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .

[toc] | [prev] | [next] | [standalone]


#7202

FromVirchanza <virtual@lavabit.com>
Date2011-06-28 05:49 -0700
Message-ID<73355bde-ebba-4a17-99c8-c3866cbd5566@k6g2000yqc.googlegroups.com>
In reply to#7095
On Jun 24, 7:28 am, Raymond <mechia...@gmail.com> wrote:
> So I've heard that creating GUI programs in C++ is quite difficult.
>
> I need to implement JPEG with a GUI to select settings and display the
> image.  We're encouraged to use Visual C++ or Java because they're more
> suited to multimedia.  I'm thinking of using C++ (don't know it yet)
> cause it's faster but since the GUI is a big part of it and considering
> how difficult it is... I'm not sure.  I do know Java and some C#.
>
> Would it be better to create a GUI in C# and have C++ to do the processing?


I did a GUI program in C++ using the wxWidgets library. The wxWigets
library is portable across MS-Windows, Mac OS, Linux, among others.

I've a webpage about it:

http://virjacode.com/projects/dynamo

[toc] | [prev] | [next] | [standalone]


#7204

Fromhanukas <jukka@liimatta.org>
Date2011-06-28 06:10 -0700
Message-ID<3dc52b2b-0302-43e8-b12c-b651c92ec29f@d14g2000yqb.googlegroups.com>
In reply to#7095
On Jun 24, 9:28 am, Raymond <mechia...@gmail.com> wrote:
> So I've heard that creating GUI programs in C++ is quite difficult.
>
> I need to implement JPEG with a GUI to select settings and display the
> image.  We're encouraged to use Visual C++ or Java because they're more
> suited to multimedia.  I'm thinking of using C++ (don't know it yet)
> cause it's faster but since the GUI is a big part of it and considering
> how difficult it is... I'm not sure.  I do know Java and some C#.
>
> Would it be better to create a GUI in C# and have C++ to do the processing?

It's a breeze to create a managed C++ application with .NET framework.
It depends how much knobs and dials you want into your interface. You
could go with Direct2D, Direct3D or OpenGL if you want fancy graphical
features of GPU processing of the displayed data. It's possible to
keep things really simple or go broke with feature fever, hard to tell
from your post.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.c++


csiph-web