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. Global Event in C++

Global Event in C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
11 Posts 3 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.
  • M Member_14221041

    Hi! I am currently working on a project that is used to the global event. I did not find any vague suggestions on google. Show me how to start it and document it. Thank you!

    S Offline
    S Offline
    Stefan_Lang
    wrote on last edited by
    #2

    I'm having diffculty to understand what you're looking for, and I suspect for google it's the same. Let's start with specifiying more clearly what you want to do: - what is a typical usecase for the program that you want to solve? - what are the conditions under which the program is used? - who uses the program? - who writes the program (other than you)? And more to the point: - what do you mean by global event? - what do you mean by 'start' and 'document' and 'it' I do have some ideas what you're talking about, but it would be easier to offer meaningful advice when there's less guessing involved.

    GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

    M 1 Reply Last reply
    0
    • M Member_14221041

      Hi! I am currently working on a project that is used to the global event. I did not find any vague suggestions on google. Show me how to start it and document it. Thank you!

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #3

      What event your are talking about? Event Objects[^], for instance, as far as I know, are not globals.

      In testa che avete, signor di Ceprano?

      M 1 Reply Last reply
      0
      • S Stefan_Lang

        I'm having diffculty to understand what you're looking for, and I suspect for google it's the same. Let's start with specifiying more clearly what you want to do: - what is a typical usecase for the program that you want to solve? - what are the conditions under which the program is used? - who uses the program? - who writes the program (other than you)? And more to the point: - what do you mean by global event? - what do you mean by 'start' and 'document' and 'it' I do have some ideas what you're talking about, but it would be easier to offer meaningful advice when there's less guessing involved.

        GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

        M Offline
        M Offline
        Member_14221041
        wrote on last edited by
        #4

        Thanks for your answer! I'm looking to build a demo to use to the global event. I want to write a program (MainApp) that manages two other programs (SubApp1 and SubApp2). When I run MainApp, then MainApp will start subapp1 and subapp2.

        S 1 Reply Last reply
        0
        • CPalliniC CPallini

          What event your are talking about? Event Objects[^], for instance, as far as I know, are not globals.

          M Offline
          M Offline
          Member_14221041
          wrote on last edited by
          #5

          I'm reading it, but I still don't understand them. Handling global events | Kentico 12 Documentation[^]

          CPalliniC S 2 Replies Last reply
          0
          • M Member_14221041

            I'm reading it, but I still don't understand them. Handling global events | Kentico 12 Documentation[^]

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #6

            You should have mentioned you were using Kentico12. Probably you need to ask the question here: Questions & Answers[^]. In any case it looks .NET stuff, not C++.

            In testa che avete, signor di Ceprano?

            M 1 Reply Last reply
            0
            • CPalliniC CPallini

              You should have mentioned you were using Kentico12. Probably you need to ask the question here: Questions & Answers[^]. In any case it looks .NET stuff, not C++.

              M Offline
              M Offline
              Member_14221041
              wrote on last edited by
              #7

              Thanks for your answer!

              CPalliniC 1 Reply Last reply
              0
              • M Member_14221041

                Thanks for your answer!

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #8

                You are welcome.

                In testa che avete, signor di Ceprano?

                1 Reply Last reply
                0
                • M Member_14221041

                  Thanks for your answer! I'm looking to build a demo to use to the global event. I want to write a program (MainApp) that manages two other programs (SubApp1 and SubApp2). When I run MainApp, then MainApp will start subapp1 and subapp2.

                  S Offline
                  S Offline
                  Stefan_Lang
                  wrote on last edited by
                  #9

                  1. You still haven't told us what you mean by global event 2. You're talking about processes and threads. Typically when you start an application on your computer, this starts a process with a single thread, the main thread. You can choose to leave it at that, in which case your program will just sequentially process it's task. Or your process can create new _thread_s controlled by it, which will potentially run in parallel. You can also start a new process from the first one, but then your initital process will have no direct control over it; it can only talk to it via interprocess communication protocols. In that latter case, communication might be implemented by sending Windows Events to the other process. I'm sure there are many other ways, but I'm not up to date with modern approaches in this field, nor do I have any relevant experience. So, when you talk a 'mainapp' and 'subapp's, do you mean a process and it's _thread_s, or do you mean to spawn separate _process_es - in which case the term 'subapp' would be very misleading? P.S.: I only now spotted your answers below - looks like I was on the wrong path all along. As CPallini said, you'd better ask at the Kentico forums. And as they're using C#, the question is if you really want to go the extra mile of trying this in C++ ...

                  GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                  M 1 Reply Last reply
                  0
                  • M Member_14221041

                    I'm reading it, but I still don't understand them. Handling global events | Kentico 12 Documentation[^]

                    S Offline
                    S Offline
                    Stefan_Lang
                    wrote on last edited by
                    #10

                    I took a quick glance at the Kentico site. Now I know this is about designing web pages - another bit of information you could have shared from the start. One thing however is important to know: on it's main page[^] Kentico states (under "Disadvantages") that it

                    Quote:

                    Requires knowledge of ASP.NET MVC and programming.

                    This doesn't sound like a beginner's tool to me. If you don't already know ASP.NET, this will be a stony path...

                    GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                    1 Reply Last reply
                    0
                    • S Stefan_Lang

                      1. You still haven't told us what you mean by global event 2. You're talking about processes and threads. Typically when you start an application on your computer, this starts a process with a single thread, the main thread. You can choose to leave it at that, in which case your program will just sequentially process it's task. Or your process can create new _thread_s controlled by it, which will potentially run in parallel. You can also start a new process from the first one, but then your initital process will have no direct control over it; it can only talk to it via interprocess communication protocols. In that latter case, communication might be implemented by sending Windows Events to the other process. I'm sure there are many other ways, but I'm not up to date with modern approaches in this field, nor do I have any relevant experience. So, when you talk a 'mainapp' and 'subapp's, do you mean a process and it's _thread_s, or do you mean to spawn separate _process_es - in which case the term 'subapp' would be very misleading? P.S.: I only now spotted your answers below - looks like I was on the wrong path all along. As CPallini said, you'd better ask at the Kentico forums. And as they're using C#, the question is if you really want to go the extra mile of trying this in C++ ...

                      GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                      M Offline
                      M Offline
                      Member_14221041
                      wrote on last edited by
                      #11

                      Thank you very much for your support!

                      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