Transmit simple data through DLL
-
Hi, I would like to transmit very simple data (like two integers) between two applications through a dll. I use a shared data segment to store the data. One application writes the data and the other reads it. The problem is the following: The application which reads the data has to do some sort of polling to check if new data has arrived and this is too slow. Isn't there a simple way to install a callback mechanism :confused: (please as simple as possible... I'm not a programming guru :(( (and "memory mapped file" makes me afraid X|)) Thanks for your help :)
-
Hi, I would like to transmit very simple data (like two integers) between two applications through a dll. I use a shared data segment to store the data. One application writes the data and the other reads it. The problem is the following: The application which reads the data has to do some sort of polling to check if new data has arrived and this is too slow. Isn't there a simple way to install a callback mechanism :confused: (please as simple as possible... I'm not a programming guru :(( (and "memory mapped file" makes me afraid X|)) Thanks for your help :)
I would use a registered windows message to relay the sync info. Register a message in each of your applications (a GUID is a very good name to use for the message). After one app updates the shared info it broadcasts the registrered message (PostMessage with NULL HWND). In the recieving app your respond to the registered message and read the shared data. Cheers Steen. "To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
-
I would use a registered windows message to relay the sync info. Register a message in each of your applications (a GUID is a very good name to use for the message). After one app updates the shared info it broadcasts the registrered message (PostMessage with NULL HWND). In the recieving app your respond to the registered message and read the shared data. Cheers Steen. "To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"