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. Design and Architecture
  4. Check if app exists and open from internet

Check if app exists and open from internet

Scheduled Pinned Locked Moved Design and Architecture
c++windows-admintutorialquestion
7 Posts 2 Posters 5 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.
  • D Offline
    D Offline
    Dimkov
    wrote on last edited by
    #1

    I have a stand alone application (messenger). I was asked to the messenger to have the fallowing possibility: from a link with a phone number parameter to make a call in the application. If the messenger is not installed, to take the client to the official web site. If the product is installed to see if it is open. If it is open and the user is logged in to make the call. My idea is the client to check the registry and see if the product is there, which solves the first part. If there are certain keys in the registry next step is from the processes to see if the product is active. If active somehow send instruction to call the function : CallNumber( phonenumber phnum) Can you give me any leads on how to do all this, any other solution to the task? The project is done in C++ Thank you very much Dimkov Trajce

    P D 2 Replies Last reply
    0
    • D Dimkov

      I have a stand alone application (messenger). I was asked to the messenger to have the fallowing possibility: from a link with a phone number parameter to make a call in the application. If the messenger is not installed, to take the client to the official web site. If the product is installed to see if it is open. If it is open and the user is logged in to make the call. My idea is the client to check the registry and see if the product is there, which solves the first part. If there are certain keys in the registry next step is from the processes to see if the product is active. If active somehow send instruction to call the function : CallNumber( phonenumber phnum) Can you give me any leads on how to do all this, any other solution to the task? The project is done in C++ Thank you very much Dimkov Trajce

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      What??? What legitimate reason do you have for dialing a number? Possibly without the user knowing that you have done so. Programs that have done this in the past have been used to hijack users phonelines and redirect them to premium rate numbers (often abroad). Please explain what the legitimate reason is to do this.

      Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

      D 1 Reply Last reply
      0
      • P Pete OHanlon

        What??? What legitimate reason do you have for dialing a number? Possibly without the user knowing that you have done so. Programs that have done this in the past have been used to hijack users phonelines and redirect them to premium rate numbers (often abroad). Please explain what the legitimate reason is to do this.

        Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

        D Offline
        D Offline
        Dimkov
        wrote on last edited by
        #3

        I am developing the application, and it is a messenger who has voip. The company asked me if users can make phone calls using the messenger from a link on a web page with the phone number as a parameter. If some security is needed i can implement it in the application, and the link they will get only after signing in on the official webpage. Extra difficulty is if they erase the the messenger. This is the reason why I have to see if the application is in the computer(if so but closed to ask to open the application) and if the application is by some chance removed, (it is not in the registry my guess) take the user on the official download site. I believe something like this can be done with scripting on the client side code with javascript, but I am not sure

        P 1 Reply Last reply
        0
        • D Dimkov

          I am developing the application, and it is a messenger who has voip. The company asked me if users can make phone calls using the messenger from a link on a web page with the phone number as a parameter. If some security is needed i can implement it in the application, and the link they will get only after signing in on the official webpage. Extra difficulty is if they erase the the messenger. This is the reason why I have to see if the application is in the computer(if so but closed to ask to open the application) and if the application is by some chance removed, (it is not in the registry my guess) take the user on the official download site. I believe something like this can be done with scripting on the client side code with javascript, but I am not sure

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          If they erase the messenger and you want to take them to the official webpage, then you wouldn't want to dial the number. You would just use something like

          Process.Start("http://www.mycompany.com");

          from the application.

          Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

          D 1 Reply Last reply
          0
          • P Pete OHanlon

            If they erase the messenger and you want to take them to the official webpage, then you wouldn't want to dial the number. You would just use something like

            Process.Start("http://www.mycompany.com");

            from the application.

            Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

            D Offline
            D Offline
            Dimkov
            wrote on last edited by
            #5

            let me split this to couple of questions: 1.Can I access the registry with IE and if yes how? 2. Can I use IE and scripting language to call a program with parameter? Thank you Pete in advance

            P 1 Reply Last reply
            0
            • D Dimkov

              let me split this to couple of questions: 1.Can I access the registry with IE and if yes how? 2. Can I use IE and scripting language to call a program with parameter? Thank you Pete in advance

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Directly, you can't access the registry. The way that I've done this in the past was to have an external C routine called from a Java applet running in the browser session.

              Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

              1 Reply Last reply
              0
              • D Dimkov

                I have a stand alone application (messenger). I was asked to the messenger to have the fallowing possibility: from a link with a phone number parameter to make a call in the application. If the messenger is not installed, to take the client to the official web site. If the product is installed to see if it is open. If it is open and the user is logged in to make the call. My idea is the client to check the registry and see if the product is there, which solves the first part. If there are certain keys in the registry next step is from the processes to see if the product is active. If active somehow send instruction to call the function : CallNumber( phonenumber phnum) Can you give me any leads on how to do all this, any other solution to the task? The project is done in C++ Thank you very much Dimkov Trajce

                D Offline
                D Offline
                Dimkov
                wrote on last edited by
                #7

                I decided to create an ActiveX commponent which will find the application by PID. If it doesn find the PID, the app is not running, if yes Ill do ::SendMessage to the window of the app

                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