There several ways to do this.
One way is to call your C program on a command line using the
tcl exec command and passing the text value in the command line
as a command line parameter.
Another way is to make your C program a tcl extension and load
it from within your Tcl script. To make it easier to integrate C programs
into Tcl there is an extension called Swig (Simplified Wrapper and
Interface Generator).
The Swig web site is at:
http://www.swig.org/
A third way is to make your C program the main program and have
it call Tcl scripts. This way you can exchange variables between C and
Tcl. I have never done this though, but you can find documentation about
this in Tcl books like the reference book from John Ousterhout.
CG
|--------+------------------------------------->
| | manisha g |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | eforge.net |
| | |
| | |
| | 04/26/2001 04:14 AM |
| | Please respond to vtcl-user|
| | |
|--------+------------------------------------->
>-----------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Fax to:
|
| Subject: [vtcl-user] passing variable from vtcl to c
|
|
|
>-----------------------------------------------------------------------------------------------------------|
Hello Sir,
Is it possible to pass a variable from vtcl to c
program.I am trying to passs a text variable of entry
widget to c program.Is it possible to do so.If yes
then how.I will be very thankful if you help me.
Regard's
Nisha
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user