Re: C++ and GUI

From: marvin (scary_at_movie.com)
Date: 10/18/03


Date: Sat, 18 Oct 2003 01:40:13 -0400


"Alan Gifford" <siliconbadger@yahoo.com> wrote in message
news:f299e551.0310171633.4ccaf5b6@posting.google.com...
> balzano_1@yahoo.com (balzano_1) wrote in message
news:<60cb24fa.0310161006.2e285b4f@posting.google.com>...
> > 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.

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



Relevant Pages

  • Re: How do old-school emacs/gcc/gdb hackers do their coding?
    ... write portable code, that runs on windows, linux, solaris etc. ... For gui, I dabbled with using tcl/tk combined with C code to build a portable ...
    (comp.os.linux.development.apps)
  • Re: What is your development environment for Tcl?
    ... I use Tcl on two different platforms: ... Windows XP, using the ActiveState distribution ... My development is mostly on Windows, ... On Linux I use vi to edit my source files, ...
    (comp.lang.tcl)
  • Tcl/Tk 8.5.8 RELEASED
    ... Tcl/Tk 8.5.8 Release Announcement ... The Tcl Core Team is pleased to announce the 8.5.8 releases of the Tcl ... Fixed state confusion on Windows. ...
    (comp.lang.tcl)
  • Dr. Dobbs Tcl-URL! - weekly Tcl news and links (Sep 26)
    ... The error class stored in errorCode when Windows encounters an error ... the error class was WINDOWS. ... Java vs. Tcl/Tk ... Wikipedia entry about Tcl. ...
    (comp.lang.tcl)
  • Re: What are you using tcl/tk for?
    ... gui's that control a number of large simulation based training tools. ... utilities that run portably between windows and linux. ... This uses tcom and twapi (on windows) to monitor and control programs ... a tcl gui app on a windows xp laptop ...
    (comp.lang.tcl)

Loading