Posted to tcl by thomas at Fri Jan 21 21:30:36 GMT 2011view raw
- case DIR_INITIAL:
- {
-
-
- char toto[256];
- Tcl_Eval(interp,"puts \"arg is\"");
- strcpy(toto,"puts ");
- strcat(toto,string);
- Tcl_Eval(interp,toto);
-
- if (Tcl_TranslateFileName(interp,string,&initDirString) == NULL) {
- puts("NULL!");
- goto cleanup;
- }
- string = Tcl_DStringValue(&initDirString);
-
-
- Tcl_Eval(interp,"puts \"after Tcl_TranslateFileName\"");
-
- strcpy(toto,"puts ");
- strcat(toto,string);
-
- Tcl_Eval(interp,toto);
-
-
-
-
-
-
- (bin) 1 % tk_chooseDirectory -initialdir I:/Tmp
- arg is
- I:/Tmp
- after Tcl_TranslateFileName
- I:Tmp
- I:Tmp"
- I:Tmp
- here321