The visual Tcl console does not use the standard input/output
mechanism, (except it catches all "puts" commands to show their result),
so any C application trying to get input from the command line will just
stop there and wait for input that will never arrive (most likely, you
could
type the input in the shell instead of in the vTcl console, but I haven't
tried
that).
Parameters should be passed on the command line to a C application, or
through a file whose name is either implied, or passed on the command line.
I haven't tried input redirection with the exec command so I cannot tell if
it will work or not and if not how to make it work.
If you want to dynamically recompile a file from a Visual Tcl project you
should probably have the C source include a separate file that your Tcl
project will generate.
CG
|--------+------------------------------------->
| | manisha g |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | eforge.net |
| | |
| | |
| | 04/29/2001 11:45 PM |
| | Please respond to vtcl-user|
| | |
|--------+------------------------------------->
>-----------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Fax to:
|
| Subject: [vtcl-user] about passing parameters to c
|
|
|
>-----------------------------------------------------------------------------------------------------------|
Hello Sir,
When we open a c file in vtcl ,it will open in
command console.But i want to edit that file and save
it again.How can i do this.
I have opened the c file in read/write mode in vtcl,
But i can't alter its value from vtcl.
I have written a c file,which ask the value for 2
parameters by scanf.I have written shell script
contianing gcc and a.out.
But when i run it vtcl,ie executing shell script by
eval exec ,vtcl will hang,as it doesn't get those
parameters.
I have tried redirection also to pass parameters.
I don't want to use swig.
Help me please.
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