Hi,
Does anyone know how can i pass a variable from tcl back to C. Eg. me selected a filename in Tcl, and wanting to open the file in C.
M'i suppose to use Tcl_LinkVar or Tcl_SetVar?
Pls enlighten. A simple example will be helpful.
Help will be greatly appreciated.
Hi,
i wrote a program to open and read a file and wanted to store my the content into a buffer. Does my program works? How can i read the data from my buffer?
#include <stdio.h>
#include <string.h>
#define buffer 1000
main()
{ FILE *pf;
int i;
int width;
int height;
int maxVal;
int...
Hi,
I need some help with storing the Data of Pgm file into Buffer using Strcat;
Here is my source code:
/* fread example: read a complete file */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main () {
FILE * pFile;
long lSize;
char * buffer;
char filename[80]...
Hi,
I need some help, i have written a program in C to read the header, width , height and maxVal of a pgm files.
I managed to read and display the header information, but failed to read the width, height and maxVal of the file. Can anyone enlighten me on what went wrong.
Here is my...
Hi
I managed to open an image file in Tcl/Tk. How can i read the data arrays of the images into C program? Please enlighten me. Thanx!
With Regards
S C Ho
Hi,
Can anyone enlighten me on how can i draw a straight line across the image i have called. Acutally i have tried to combine two code that is
#Calling out the Image
{
set w .image1
catch {destroy $w}
toplevel $w
wm title $w "Image Display"
wm iconname $w "Image1"
catch...
Hi, i'm new to Tcl/Tk and currently working on a project related with it. Can anyone provide with some guidance on how can i interface My C program with Tcl. Or can anyone provide me with a simple program that i can take referance with.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.