Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: LF28
  • Order by date
  1. LF28

    Why is Visual Studio C++ 2008 Express Broken OOTB?

    HI there, I was experiencing similar problems when I installed VS8 on my machine at work for the first time. I noticed two things that might be helpful with this: 1. If you already have a "express" version of the MS build tools installed, uninstall it first. 2. Don't mess with the install...
  2. LF28

    Strange USB Mouse Behavior

    Hi timoteius, thanks for answering. My XP is updated to the latest patch. A mouse driver is actually not neccessary, since I have a HID compliant mouse. Nevertheless I am using the driver and whatever software came with the mouse. And if it were a driver issue, how come it works perfectly once...
  3. LF28

    Running backgound program from TCL

    Hi, using a pipe is this easy: if {[catch {open "|~/csp/audits/user/cspnsl_builder $NE_Handle" r} pipe]} { puts "Cannot open pipe because:\n$pipe" }
  4. LF28

    Strange USB Mouse Behavior

    Hi Folks, I upgraded to a new system lately. System CPU: AMD 5200+ BOARD: ASUS M2N-SLI Deluxe GFX: nVidia 8800 GTS SYS: XP Devices USB: Mouse, Printer PS2: Keyboard using my old trusty Hama Gamer Mouse (5 Buttons, nothing fancy). The mouse works fine except for the wheel. The...
  5. LF28

    eval problem

    Hello, if you are using TCL 8.4.x you could do something like set OUT_BOUND_QUE 100 set THREAD_NAME OUT_LAB set STRNG "Connection %s is %s records behind" set VAR [list $THREAD_NAME $OUT_BOUND_QUE] set result [eval format [list $STRG] $VAR] Eval expands all lists members to single...
  6. LF28

    trouble with regsvr32

    The options differ in the usual way: release build: runtime: multithreaded-dll no checking (small types, stack, ...) struct alignment: standard debug build: runtime: multithreaded-debug-dll full runtime checks struct alignment: standard I double and triple checked all settings and I am...
  7. LF28

    trouble with regsvr32

    Hi folks, I am building a self-registration capable dll using msvc. So I included something like regsvr32 <mydll.dll> in the post build step. Now, everything's fine as long as I release build the thing. The DLL is created and registered as it should be. Enter Debug build. When I compile the...
  8. LF28

    TCL array question using foreach command...

    hi cliffcolon, you might want to try this: #=============================================================================== proc dumpArray {arr keys {prefix ""}} { #=============================================================================== upvar $arr array if {[llength $keys] ==...
  9. LF28

    What is the best external interface for a library file?

    Hi Jason, I think it's not really that important (from the code point of view) whether your variables or static buffers are defined inside the lib or not. Since you want to build a static lib (no *.dll, or *.so) the resulting executable won't care in which object file the variables were...
  10. LF28

    problem with switch

    Bong, this cannot work, since switch does not eval it's body. The curly braces hinder the interpreter from substituting the value of $toto, whether locally or globally defined. So the proc should look something like: proc getproc {chiffre} { switch $chiffre [list \ $::toto {set...
  11. LF28

    How to set a variable in script for a c++ file variable

    Hi, a little more information would likely help solve your problem. But I guess you want to link a TCL variable to a variable in your c++ program. So whenever you change the TCL var (using set, ...) the c++ var will be updated accordingly. All you have to do is call Tcl_LinkVar(interp...
  12. LF28

    Challange !! How to override one sub command only

    Hi! Why don't you try something like this: rename info info_original proc info args { switch [lindex $args 0] { script { # your script implementation } body { # your body implementation } default { return [uplevel...
  13. LF28

    How to debug compiled dll

    Hi Lorey, 1. Define some breakpoints 2. press F5 3. enter the name of the executable which uses your DLL 4. debug the hell out of it! :) If this does not help you, you might want to be more specific about your problem. Greetings, LF28
  14. LF28

    using windows dll

    Hi zby, to use this twain_32.dll in TCL you have to create a DLL of your own which provides the interpreter with all the functions you need. You must use the TCL-C-Interface provided with the TCL-API. I assume that you use some version of Microsoft Visual Studio. Step 1: Create a Win32 DLL...
  15. LF28

    Help needed for puts cmd!!!

    Hi, to keep puts from appending "\n" to the end of your string, use the -nonewline option: set in [open $fileName w] puts -nonewline $in $someString close $in Regards, Tobi
  16. LF28

    Tcl puts command

    Hi, # to prevent puts from going to the next line use puts -nonewline "Hallo" flush stdout # to make puts restart the current line use puts -nonewline "something\r" flush stdout Since you want the result look like an "helicopter animation" it is important that you call "flush stdout" after...
  17. LF28

    HELP NEEDED FOR CONVERTING FROM CHAR TO INTEGER!!!

    Do you want to obtain the ASCII code of your char? Then use: binary scan c $conver result puts "ASCII of $conver is $result" Tobi
  18. LF28

    empty string inside a function

    Your TCL Interpreter shows some strange behaviour there. First of all, an empty string is NOT converted to curly braces ({}). Only when using puts, empty list elements are represented this way -> {}. If I run your program using > foo "" the result is: string - length - 0 char 0 - char 1 -...
  19. LF28

    TCL File Eval syntax from a C++

    If I get you right you want to create the file name at runtime and pass it to the Tcl_EvalFile function. It seems you think that the string passed to this function is evaluated by the interpreter. AFAIK this is not true, instead the string is processed as it is. So you have to do the file name...
  20. LF28

    HELP!!!

    If you want to read the contents of a directory use the "glob" command. It returns a list of files and sub directories. Information on the files can be obtained with the file... set of functions (e.g. file isfile <fileName> or file isdirectory <fileName>) Cheers, Tobi

Part and Inventory Search

Back
Top