Calling C functions from Tk script.

A

Ab Ran

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.
 
K

Kevin Goodsell

Ab said:
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
 
J

Jack Klein

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
 
L

Les Cargill

Ab said:
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 >
 
S

Slartibartfast

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,303
Messages
2,571,557
Members
48,359
Latest member
Raqib_121635
Top