event-driven

Capturing the Click event in an Excel spreadsheet

How can I capture the event in Excel when a user clicks on a cell. I want to be able to use this event to trigger some code to count how many times the user clicks on several different cells in a column. ...

Event-driven simulation class

I am working through some of the exercises in The C++ Programming Language by Bjarne Stroustrup. I am confused by problem 11 at the end of Chapter 12: (*5) Design and implement a library for writing event-driven simulations. Hint: <task.h>. ... An object of class task should be able to save its state and to have that state restored s...

Can you make me understand dynamic, abstract event objects easily?

I've written C++ event-driven apps using MFC for GUI buttons, and I use HTML events like onmousedown to trigger some Javascript in a webpage. The idea of event-driven programming is intuitive when you are using the interface and events are hard-coded. I know how to use a function pointer in C, and I see how Windows uses them to run an ...

How is Win32 event-driven programming implemented under the hood?

In a Win32 C++ application, we start a message loop that fetches messages from a queue, translates them and then dispatches them. Eventually, each message reaches our WndProc where the associated event can be handled. I understand that part. What I don't understand is the in between goings-on. Specifically: Different kinds of OS inter...

Event-Driven Client/Server Design with C++

I am designing a game server with scripting capabilities. The general design goes like this: Client connects to Server, Server initializes Client, Server sends Client to EventManager (separate thread, uses libevent), EventManager receives receive Event from Client socket, Client manages what it received via callbacks. Now the last par...

JBoss Seam - Massive Messaging in Application

I'´m currently twiddling with an application that has a setup matching the following chat analogy: a chat is an object that is held in memory and contains a list of chat messages a chat is rendered in several browser windows and updates are pulled in with a4j:push The programmatic setup looks like this: an instance of a chat object w...

Watching a folder using Win32

I'm looking for a straightforward way to watch the contents of a folder using Win32 (minimum target is XP). If possible, it would be nice to use an event-driven approach rather than a polling-type approach. To complicate things, the watched folder may be a network share. I'm really only interested in capturing "new files". I don't care ...

Which books or resources would you recommend for learning event-driven programming?

The question says it all, really. I am looking for books or resources I can use to self-teach regarding event-driven programming. I have a decent grasp on the program flow of smaller programs that don't have a GUI (procedural programming, I think); basically the code doesn't interact with the user beyond command-line arguments, or someti...

Good resources for learning event driven flash development?

What are good books / site where you can learn the best practices for event driven programming in actionscript (3 obviously). I've got a big project coming up and, to be honest, my flash is usually a big mess of classes and I don't want the the next one to turn into a ball of hair behemoth. ...

C#: Automating the InvokeRequired code pattern

I have become painfully aware of just how often one needs to write the following code pattern in event-driven GUI code, where private void DoGUISwitch() { // cruisin for a bruisin' through exception city object1.Visible = true; object2.Visible = false; } becomes private void DoGUISwitch() { if (object1.InvokeRequir...

Good resources to learn about Event Driven Architecture

Looking for books, blogs, web sites or videos. At the moment I am getting a lot of value from the blogs of Udi Dahan and Greg Young, but I was wondering if there are any other experts out there worth listening to? ...

Event-Driven Web Application in JBoss ESB

I am trying to create a web application with a display that updates based on messages on an Enterprise Service Bus (specifically, running on JBoss EAP 5). At present, we have a cache service sitting on the ESB, and the web application polls the service periodically to update its display. I would like instead for the cache service to be a...

What is SEDA (Staged Event Driven Architecture)?

SEDA: An Architecture for Highly Concurrent Server Applications "SEDA is an acronym for staged event-driven architecture, and decomposes a complex, event-driven application into a set of stages connected by queues." I understand that it's an architecture and that there are many implementations of SEDA (see the Wikipedia article). What ...

Modify Time for simulation in c++

Hi everyone, i am writing a program which simulates an activity, i am wondering how to speed up time for the simulation, let say 1 hour in the real world is equal to 1 month in the program. thank you the program is actually similar to a restaurant simulation where you dont really know when customer come. let say we pick a random num...

Opting for a messaging system over web services such as SOAP

I'm working on a project at the moment that involves building a system in conjunction with another technical partner. The system will provide "monitoring" type functionality and operations will be long running with numerous "events" being returned and processed / returned to the user. My initial reaction was to build a web service that...

Is there a simple .NET code generator for a Event-driven finite state machine?

Is there a simple .NET code generator for a Event-driven finite state machine? I am tired of doing this by hand for user-interface objects. I just need the enum definition, the switch statement, and each function call. I do not need a "library". See Event-driven finite state machine at http://en.wikipedia.org/wiki/Event_driven_finite_s...