Global Event in C++
-
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!
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)
-
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!
-
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)
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.
-
What event your are talking about? Event Objects[^], for instance, as far as I know, are not globals.
I'm reading it, but I still don't understand them. Handling global events | Kentico 12 Documentation[^]
-
I'm reading it, but I still don't understand them. Handling global events | Kentico 12 Documentation[^]
-
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, notC++
.Thanks for your answer!
-
Thanks for your answer!
-
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.
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)
-
I'm reading it, but I still don't understand them. Handling global events | Kentico 12 Documentation[^]
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. 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)
Thank you very much for your support!