Calling a VB app from a tcl proc – and passing it the messag

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Calling a VB app from a tcl proc – and passing it the messag

  • Creator
    Topic
  • #52080
    Bevan Richards
    Participant

      Has anyone ever tried to call a Visual Basic app/script from a tcl proc in the engine? Also passing it the hl7 message?

      I need to automate a process that takes an ORM and generates a printed form from it.

    Viewing 5 reply threads
    • Author
      Replies
      • #72984
        garry r fisher
        Participant

          Hi,

          You should be able to do this. I’ve called external programs before from Tcl -Not sure of format but will along the lines of:

          “exec script.vb message”

          Quotes will be important but I may have them in the wrong place. Bit of trial and error for you.

          Regards

          Garry

        • #72985
          Bevan Richards
          Participant

            Thanks, that at least get me to a starting point to start experimenting.

          • #72986
            Charlie Bursell
            Participant

              I haven’t tried it but I don’t think you will be able to do that.

              In Windows Tcl can only exec .bat, .exe and .com files.

              You will have to exec VB and pass it your script as an argument.

              This is the same way we have to exec Tcl and Perl scripts in Windows

            • #72987
              Bevan Richards
              Participant

                What I was thinking on was using the free VB 2010 and making a compiled exe for what I need to do and call the exe from tcl.

              • #72988
                Charlie Bursell
                Participant

                  That should work

                • #72989
                  garry r fisher
                  Participant

                    Hi,

                    Interesting to know that. I’ve only ever called .exe and .bat files so haven’t come across that issue before.

                    Regards

                    Garry

                Viewing 5 reply threads
                • The forum ‘Cloverleaf’ is closed to new topics and replies.