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. C / C++ / MFC
  4. App Loading

App Loading

Scheduled Pinned Locked Moved C / C++ / MFC
designquestion
23 Posts 7 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.
  • A Adam Roderick J

    I cannot understand how you understand that, this third party is loaded? You dont have any notification on GUI, no message? Then how come a application be like that? i cannot understand :)

    Величие не Бога может быть недооценена.

    J Offline
    J Offline
    john5632
    wrote on last edited by
    #11

    Adam, but the application is like that :) I am trying for CPU usage + memory usage? But not able to get CPU usage..any hint?

    A 1 Reply Last reply
    0
    • J john5632

      Hi, I have a 3rd party application that takes 2-3 min to load. I am to notify the user that the application has been loaded. I tried it as: I design another application that will keep watching memeory usage of that application in every 5 second. If Memeory usage is equal to last 5 second. I assumes application has been loaded. But sometime my logic fails. Is there any better idea to do this task?

      R Offline
      R Offline
      R jeev K R
      wrote on last edited by
      #12

      Is there any operations are doing other than the normal application launch in the application InitInstance or Form Load(). I mean Loading settings from a file or from a remote server, or initialising some settings etc... ?

      J 1 Reply Last reply
      0
      • R R jeev K R

        Is there any operations are doing other than the normal application launch in the application InitInstance or Form Load(). I mean Loading settings from a file or from a remote server, or initialising some settings etc... ?

        J Offline
        J Offline
        john5632
        wrote on last edited by
        #13

        i dont know its just a exe file.

        1 Reply Last reply
        0
        • J john5632

          Hi, I have a 3rd party application that takes 2-3 min to load. I am to notify the user that the application has been loaded. I tried it as: I design another application that will keep watching memeory usage of that application in every 5 second. If Memeory usage is equal to last 5 second. I assumes application has been loaded. But sometime my logic fails. Is there any better idea to do this task?

          P Offline
          P Offline
          Paresh Chitte
          wrote on last edited by
          #14

          Is API WaitForInputIdle[^] helpfule? Regards, Paresh.

          1 Reply Last reply
          0
          • J john5632

            Adam, but the application is like that :) I am trying for CPU usage + memory usage? But not able to get CPU usage..any hint?

            A Offline
            A Offline
            Adam Roderick J
            wrote on last edited by
            #15

            I think you want to do some operation after it is loaded. Which is that application. I think you asked about the CPU usage yesterday also? isn't it? :) Why you are restricted to use that a such a third party application? what you have to achieve with that third party application? If you answer these, i may help u .

            Величие не Бога может быть недооценена.

            J 1 Reply Last reply
            0
            • A Adam Roderick J

              I think you want to do some operation after it is loaded. Which is that application. I think you asked about the CPU usage yesterday also? isn't it? :) Why you are restricted to use that a such a third party application? what you have to achieve with that third party application? If you answer these, i may help u .

              Величие не Бога может быть недооценена.

              J Offline
              J Offline
              john5632
              wrote on last edited by
              #16

              Ya I asked yesterday also. I am restricted to use it (3rd party app) because it gives a virtual environment to user to use. To prepare the virtual environment it takes around 3-5 minutes. I am designing my own application that will have more user option but using same 3rd party application. So I have to notify the user that environment has been loaded and proceed with next step. I think now you will help Adam :)

              A 1 Reply Last reply
              0
              • J john5632

                Ya I asked yesterday also. I am restricted to use it (3rd party app) because it gives a virtual environment to user to use. To prepare the virtual environment it takes around 3-5 minutes. I am designing my own application that will have more user option but using same 3rd party application. So I have to notify the user that environment has been loaded and proceed with next step. I think now you will help Adam :)

                A Offline
                A Offline
                Adam Roderick J
                wrote on last edited by
                #17

                i hope once the virtual environment is loaded, you can click the button I think once it is loaded, dialog will be on active state. Please check whether you can click or do some operation on loading time? If you cannot click and it is not in active state then you can use WaitForInputIdle([^]) API to wait until user can input with a time of some 6-10 minutes so that it can process its input even on worse case.

                Величие не Бога может быть недооценена.

                modified on Thursday, March 4, 2010 7:39 AM

                J 1 Reply Last reply
                0
                • J john5632

                  Hi, I have a 3rd party application that takes 2-3 min to load. I am to notify the user that the application has been loaded. I tried it as: I design another application that will keep watching memeory usage of that application in every 5 second. If Memeory usage is equal to last 5 second. I assumes application has been loaded. But sometime my logic fails. Is there any better idea to do this task?

                  E Offline
                  E Offline
                  Eugen Podsypalnikov
                  wrote on last edited by
                  #18

                  Try to find the dialog window by its name or class :) Try to send WM_GETTEXT at the found window :)

                  Check your definition of Irrationality[^] :) 1 - Avicenna 5 - Hubbard 3 - Own definition

                  1 Reply Last reply
                  0
                  • A Adam Roderick J

                    i hope once the virtual environment is loaded, you can click the button I think once it is loaded, dialog will be on active state. Please check whether you can click or do some operation on loading time? If you cannot click and it is not in active state then you can use WaitForInputIdle([^]) API to wait until user can input with a time of some 6-10 minutes so that it can process its input even on worse case.

                    Величие не Бога может быть недооценена.

                    modified on Thursday, March 4, 2010 7:39 AM

                    J Offline
                    J Offline
                    john5632
                    wrote on last edited by
                    #19

                    Thanks Adam, I tried... Now I am leaving for urgent work, I will be back shortly

                    1 Reply Last reply
                    0
                    • J john5632

                      Hi, I have a 3rd party application that takes 2-3 min to load. I am to notify the user that the application has been loaded. I tried it as: I design another application that will keep watching memeory usage of that application in every 5 second. If Memeory usage is equal to last 5 second. I assumes application has been loaded. But sometime my logic fails. Is there any better idea to do this task?

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #20

                      john5632 wrote:

                      I design another application that will keep watching memeory usage of that application in every 5 second. If Memeory usage is equal to last 5 second. I assumes application has been loaded.

                      You can't seriously think this is a good idea. :rolleyes:

                      "One man's wage rise is another man's price increase." - Harold Wilson

                      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                      "Man who follows car will be exhausted." - Confucius

                      1 Reply Last reply
                      0
                      • J john5632

                        no not any visual change.

                        D Offline
                        D Offline
                        David Crow
                        wrote on last edited by
                        #21

                        Your application aside, how do you know it's ready to be used?

                        "One man's wage rise is another man's price increase." - Harold Wilson

                        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                        "Man who follows car will be exhausted." - Confucius

                        1 Reply Last reply
                        0
                        • J john5632

                          no not any visual change.

                          A Offline
                          A Offline
                          Alan Balkany
                          wrote on last edited by
                          #22

                          If the 3rd-party application creates a window (even if it's not visible) you can detect it with the Win32 API function, EnumWindows (): http://msdn.microsoft.com/en-us/library/ms633497%28VS.85%29.aspx[^] This gives you one window at a time (to your callback function) until EnumWindows () returns FALSE. You can programmatically examine the window's title to identify it.

                          D 1 Reply Last reply
                          0
                          • A Alan Balkany

                            If the 3rd-party application creates a window (even if it's not visible) you can detect it with the Win32 API function, EnumWindows (): http://msdn.microsoft.com/en-us/library/ms633497%28VS.85%29.aspx[^] This gives you one window at a time (to your callback function) until EnumWindows () returns FALSE. You can programmatically examine the window's title to identify it.

                            D Offline
                            D Offline
                            David Crow
                            wrote on last edited by
                            #23

                            My question was not code-related.

                            "One man's wage rise is another man's price increase." - Harold Wilson

                            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                            "Man who follows car will be exhausted." - Confucius

                            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