By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 914 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

Calling C functions from Tk script.

P: n/a
Hi,

I have implemented some GUI using Tk script ( I will call it gui.tk).
I want to call some C functions inside this script. How do I do it ?
I don't want to re-implement the contents of gui.tk in some other
langauge.

Is there any place on web where I can get good intro to doing such
a thing ?

Thanx in advance,
Ab.
Nov 13 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Ab Ran wrote:
Hi,

I have implemented some GUI using Tk script ( I will call it gui.tk).
I want to call some C functions inside this script. How do I do it ?
I don't want to re-implement the contents of gui.tk in some other
langauge.

Is there any place on web where I can get good intro to doing such
a thing ?

Thanx in advance,
Ab.


The C language does not define interfaces for any other language. There
may be a way, but it would be off-topic here.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Nov 13 '05 #2

P: n/a
On 30 Nov 2003 10:06:36 -0800, ab******@yahoo.com (Ab Ran) wrote in
comp.lang.c:
Hi,

I have implemented some GUI using Tk script ( I will call it gui.tk).
I want to call some C functions inside this script. How do I do it ?
I don't want to re-implement the contents of gui.tk in some other
langauge.

Is there any place on web where I can get good intro to doing such
a thing ?

Thanx in advance,
Ab.


The C language does not define any interface to any other language.
If your operating system, Tk implementation, and C compiler provide
such a feature, it is completely non-standard and specific to your OS,
Tk implementation, and C compiler.

You need to ask in a group that supports your particular OS, Tk
implementation, and/or C compiler, not here. It is not a C language
issue.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Nov 13 '05 #3

P: n/a
Ab Ran wrote:

Hi,

I have implemented some GUI using Tk script ( I will call it gui.tk).
I want to call some C functions inside this script. How do I do it ?
I don't want to re-implement the contents of gui.tk in some other
langauge.

Is there any place on web where I can get good intro to doing such
a thing ?

Thanx in advance,
Ab.


Tk with Tcl? Ask in comp.lang.tcl. For Perl...

<URL: http://wiki.tcl.tk/writing+extensions >

--
Les Cargill
Nov 13 '05 #4

P: n/a
ab******@yahoo.com (Ab Ran) wrote in message news:<80**************************@posting.google. com>...
Hi,

I have implemented some GUI using Tk script ( I will call it gui.tk).
I want to call some C functions inside this script. How do I do it ?
I don't want to re-implement the contents of gui.tk in some other
langauge.

Is there any place on web where I can get good intro to doing such
a thing ?


The book "Practical Programming in TCL and TK" by Brent Welch and
Jeffrey Hobbs was what I used, and should tell you all you need to
know.

If you're using TCL/TK on Windows try looking at the help file - it
will give you just as much information for free.
Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.