sharing common data between 2 seperate applications
-
Hi, I am trying to figure out how to share a common data between two seperate applications: app 1 and app 2. Let's say I have a 2 dimensional array representing a grid with coordinate(x,y). Each coordinate represents a cell within the grid. This grid is used as a work floor divided into many cells. At any time, there's only one person supposed to be in one cell with coordinate(a,b). If the cell is occupied, it is marked as unavaible in app 1 thus no one is allowed to enter that cell at coordinate(a,b). This grid (array) data is only updated in app 1. I want to send this array data to app 2 (on the same computer) or let app 2 have access to this data . How can I do this? Any help would be greatly apprececiated. Thanks
-
Hi, I am trying to figure out how to share a common data between two seperate applications: app 1 and app 2. Let's say I have a 2 dimensional array representing a grid with coordinate(x,y). Each coordinate represents a cell within the grid. This grid is used as a work floor divided into many cells. At any time, there's only one person supposed to be in one cell with coordinate(a,b). If the cell is occupied, it is marked as unavaible in app 1 thus no one is allowed to enter that cell at coordinate(a,b). This grid (array) data is only updated in app 1. I want to send this array data to app 2 (on the same computer) or let app 2 have access to this data . How can I do this? Any help would be greatly apprececiated. Thanks
-
I guess I'd write the data to a text file or (even more handy) to a database in app 1. Then app 2 would have a timer control that would check that file or access the database every so often and reload to show any changes in availablity.
Try to add Marking field on your database.. If any changes or user in app1 is using the cell then make a routine that will sets the fields value. The value will be represent as locking for example. So.. when app2 is accessing the current cell, it will check the state of the cell and will set the rules to the user how to interact with it. Example: 0=Unlocked 1=Locked Make sure, you mark it when u click on the cell and immediately the routine will send/update marking value into related record that represent your current cell to prevent app2 to mistaken retrieve the incorrect marking value.