473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Calling C functions from Tk script.

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
4 3540
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Charles Larry | last post by:
Is there a way to define functions after the main part of a Python script? Example: #!/usr/local/bin/python # this code yields a NameError print_message("hello world")
18
by: bart_nessux | last post by:
I need a script to call several functions at the same time. How does one call more than one function simultaneously?
1
by: delrocco | last post by:
Hello, I really appreciate anyone who has time to read this and help, Thanks up front. I'm very new to python, having picked it up for the first time a week ago, but I feel I'm very close to...
7
by: JCO | last post by:
I have several JavaScripts in a web page. Each script is in an individual file with extension .js. I want to know if it is possible to put all functions in one single page. If so, how do I call...
5
by: benc | last post by:
Hi Can some good soul help on this. I need to call jscript functions from C#. I have hosted a web control and displayed an html page successfully, but just can't find a way to call jscript...
4
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is...
10
by: Tony Rice | last post by:
If I've loaded a set of functions in a webdocument like this: <script language="JavaScript" type="text/javascript" src="/js/foo.js"</script> Shouldn't I be able to call a function from...
3
by: David Bear | last post by:
I have a hash function written by another organization that I need to use. It is implemented in perl. I've been attempting to decode what they are doing in their hash function and it is taking way...
18
by: John Friedland | last post by:
My problem: I need to call (from C code) an arbitrary C library function, but I don't know until runtime what the function name is, how many parameters are required, and what the parameters are. I...
4
by: r_ahimsa_m | last post by:
Hello, I am learning WWW technologies in Linux. I created index.html file which I can browse with Firefox/Konqueror using URL localhost/~robert/rozgloszenia/index.html. The page looks fine but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.