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!

Recent content by LF28

  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

Part and Inventory Search

Back
Top