C++ and GUI

B

balzano_1

Hi,

I have a c++ program that runs on cli only(command line) and i want
to have it working as GUI, i use this app on linux and windows, my
tutor suggested that i creat the interface with VB but im not keen on
that idea because i wouldnt be able to run it on linux.

-what do i need to make a GUI in windows and linux, i just need to
know what to look into, maybe someone can suggest a book that sheds
more light on this topic ?

thanks

balzano
 
A

Alf P. Steinbach

I have a c++ program that runs on cli only(command line) and i want
to have it working as GUI, i use this app on linux and windows, my
tutor suggested that i creat the interface with VB but im not keen on
that idea because i wouldnt be able to run it on linux.

-what do i need to make a GUI in windows and linux, i just need to
know what to look into, maybe someone can suggest a book that sheds
more light on this topic ?

See <url: http://utvikling.com/cppfaq/04/05/01/index.html>.
 
D

David B. Held

balzano_1 said:
[...]
-what do i need to make a GUI in windows and linux, i just
need to know what to look into, maybe someone can suggest
a book that sheds more light on this topic ?

As far as products go, there is Kylix, by Borland
(www.borland.com). As far as library solutions go, there is
wxWindows, Qt, and a few others. In the hopefully near
future, CBX will also support a pure C++ GUI framework.
It might also be worthwhile to follow the "Notus" project
on SourceForge, as it is an attempt to make a modern
portable C++ interface, and originally discussed on Boost.

Dave
 
D

David B. Held

Alf P. Steinbach said:
[...]
The links, man, the links.

Oh, right. I was so confused by the fact that I couldn't identify
the language that I didn't even notice the links.
Btw., doesn't every C++ programmer speak or at least
understand Norwegian?

Norwegian, Swedish or Finnish, I guess. Maybe that should
be the official language of computer science. ;)
Bjarne does.

And lucky for us, his English is better than my Norwegian.

Dave
 
S

Socketd

Norwegian, Swedish or Finnish, I guess. Maybe that should
be the official language of computer science. ;)

Forgot Bjarnes native language? Danish ;-)

socketd
 
A

Alan Gifford

Hi,

I have a c++ program that runs on cli only(command line) and i want
to have it working as GUI, i use this app on linux and windows, my
tutor suggested that i creat the interface with VB but im not keen on
that idea because i wouldnt be able to run it on linux.

-what do i need to make a GUI in windows and linux, i just need to
know what to look into, maybe someone can suggest a book that sheds
more light on this topic ?

thanks

balzano


First, I would post my unrelated questions in a new thread.

Second, look at Tcl/Tk. It runs just the same on windoze and Linux,
and Mac, and SGI, and many other things. It's not pretty, but it's
really quick and easy to do. The only difference is having to put
your C++ code into shared libraries for Win and Linux separately.
..so's for Linux and .DLLs for Windows.
 
M

marvin

Alan Gifford said:
(e-mail address removed) (balzano_1) wrote in message


First, I would post my unrelated questions in a new thread.

Second, look at Tcl/Tk. It runs just the same on windoze and Linux,
and Mac, and SGI, and many other things. It's not pretty, but it's
really quick and easy to do. The only difference is having to put
your C++ code into shared libraries for Win and Linux separately.
.so's for Linux and .DLLs for Windows.

i'm not saying not to look at this option because i certainly think it is
neat
after looking at it. from what i read though the primary language used with
tcl is c. when you get a book to learn tcl/tk they are going to have
examples
written in tcl and some c in the book. maybe the tutor could help you to
figure out
how to use c++ with tcl instead .

wxwindows is another option. from what i understand (i just use windows
xp),
you need to use a different compiler and library for both windows and linux.
sounds like you
already have the compilers so you need to link with different libraries. you
wont have to learn
a scripting language like tcl but tcl is suppose to be easier (its a
tradeoff). I have some
notes for configuration issues i collected from various people if you are
interested in using bloodshed c++
version 4.9.8.0 .

i'm not so sure how good database connectivity is with tcl/tk for both
platforms. you may decide to do more than just a GUI with this thing. you
may want
to ask an expert in comp.programming how do they rate the cross-platform
database
capabilities when comparing tcl/tk to wxWindows before choosing one over the
other.

i'm going to check out this tcl/tk and see if i can get it to work with c++
myself.

i like wxWindows so far but i want to compare the 2 and see how i like each
of them.

and if you really want to be scared on halloween open up a MFC windows book.
later,
marvin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top