Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. calling exe

calling exe

Scheduled Pinned Locked Moved Visual Basic
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kadkir
    wrote on last edited by
    #1

    I am calling a third party exe from my application, what I need is, can I set location, size of GUI of that exe from my web page. thank U all.. kiran

    C 1 Reply Last reply
    0
    • K kadkir

      I am calling a third party exe from my application, what I need is, can I set location, size of GUI of that exe from my web page. thank U all.. kiran

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Where does a web page come into it ? If you're launching a windows app, you can get it's handle, and set the window size/position with that and C APIs which you can p/invoke.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      K 1 Reply Last reply
      0
      • C Christian Graus

        Where does a web page come into it ? If you're launching a windows app, you can get it's handle, and set the window size/position with that and C APIs which you can p/invoke.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        K Offline
        K Offline
        kadkir
        wrote on last edited by
        #3

        I am Thankfull for ur response. Here I am facing 2 Problems. 1. From my ASP.Net web application I am calling an exe using javascript. Here is my code.

        var h;
        h=new ActivexObject("wscript.shell");
        h=run("c:\\sample.exe /v") ;
        h=null;

        So I am able to run it on client side. But as it is a third exe I am unable to set its location, size attributes. This was my question in ASP.Net message board. Here I pleed ur help. 2. In some other application I need to call a third party exe from my windows application. I am completely new to these C APIs, so suggest whate are the APIs to be used in what manner. Where from do I get this information. I feel sorry for confusing you, Thank U all, kiran

        D L 2 Replies Last reply
        0
        • K kadkir

          I am Thankfull for ur response. Here I am facing 2 Problems. 1. From my ASP.Net web application I am calling an exe using javascript. Here is my code.

          var h;
          h=new ActivexObject("wscript.shell");
          h=run("c:\\sample.exe /v") ;
          h=null;

          So I am able to run it on client side. But as it is a third exe I am unable to set its location, size attributes. This was my question in ASP.Net message board. Here I pleed ur help. 2. In some other application I need to call a third party exe from my windows application. I am completely new to these C APIs, so suggest whate are the APIs to be used in what manner. Where from do I get this information. I feel sorry for confusing you, Thank U all, kiran

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          From inside of a web browser? I seriously doubt you can call into the Windows API from JavaScript.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          K 1 Reply Last reply
          0
          • D Dave Kreskowiak

            From inside of a web browser? I seriously doubt you can call into the Windows API from JavaScript.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            K Offline
            K Offline
            kadkir
            wrote on last edited by
            #5

            yes, inside a browser I am calling it, it works on client side.

            1 Reply Last reply
            0
            • K kadkir

              I am Thankfull for ur response. Here I am facing 2 Problems. 1. From my ASP.Net web application I am calling an exe using javascript. Here is my code.

              var h;
              h=new ActivexObject("wscript.shell");
              h=run("c:\\sample.exe /v") ;
              h=null;

              So I am able to run it on client side. But as it is a third exe I am unable to set its location, size attributes. This was my question in ASP.Net message board. Here I pleed ur help. 2. In some other application I need to call a third party exe from my windows application. I am completely new to these C APIs, so suggest whate are the APIs to be used in what manner. Where from do I get this information. I feel sorry for confusing you, Thank U all, kiran

              L Offline
              L Offline
              LloydA111
              wrote on last edited by
              #6

              I didnt even know it was possible to write Javascript to run an exe on the client side?:confused:

              Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups