470,862 Members | 1,701 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

C user interface

Hello,

I have a C little program wich takes some text as input and process it.
I would like to make a friendly user interface. I thought i could do it
with tcl/tk, but it turns out that it is not as easy as it
looks(or...). I just need to take the user input(text) and send it over
the c program for treatement. I'm not quite sure if tcl/tk is the best
choise. Anyone knows how to do this without much pain?

Thank You

Mar 7 '06 #1
3 1454

qazinor wrote:
Hello,

I have a C little program wich takes some text as input and process it.
I would like to make a friendly user interface. I thought i could do it
with tcl/tk, but it turns out that it is not as easy as it
looks(or...). I just need to take the user input(text) and send it over
the c program for treatement. I'm not quite sure if tcl/tk is the best
choise. Anyone knows how to do this without much pain?


This is off-topic here.

<OT>
Depends on your OS. You may want to take a look at gtk (www.gtk.org),
it's cross platform and LGPL.
</OT>

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)

Mar 7 '06 #2
"qazinor" <qa*****@gmail.com> wrote:
# Hello,
#
# I have a C little program wich takes some text as input and process it.
# I would like to make a friendly user interface. I thought i could do it
# with tcl/tk, but it turns out that it is not as easy as it
# looks(or...). I just need to take the user input(text) and send it over
# the c program for treatement. I'm not quite sure if tcl/tk is the best
# choise. Anyone knows how to do this without much pain?

You'll get a more civil response in comp.lang.tcl. However what
you're asking is unclear. You can exec any program, passing a
string as command line argument or as stdin, and capture the
stdout or stderr. If you're to make a Tk GUI which communicates
with various programs to do computations, other people in the
Tcl community have experience doing this, communicating with
exec, bidirectional pipes, sockets, etc.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
I ASSURE YOU WE'RE OPEN!
Mar 8 '06 #3
To whom it may concern, I found what I was looking for
http://etude.uwaterloo.ca/~ctrudeau/..._tk/tcl_C.html.
I really thought that there was a more simple way to do this.

Thank You.

Mar 8 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by zlst | last post: by
2 posts views Thread by Dan | last post: by
6 posts views Thread by Earl Teigrob | last post: by
24 posts views Thread by Rob R. Ainscough | last post: by
1 post views Thread by David Hearn | last post: by
8 posts views Thread by mark.norgate | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.