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. Visual Basic
  4. sharing common data between 2 seperate applications

sharing common data between 2 seperate applications

Scheduled Pinned Locked Moved Visual Basic
questioncssdata-structureshelptutorial
3 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 Offline
    M Offline
    mrmathews99
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • M mrmathews99

      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

      K Offline
      K Offline
      Kschuler
      wrote on last edited by
      #2

      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.

      N 1 Reply Last reply
      0
      • K Kschuler

        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.

        N Offline
        N Offline
        Nouvand
        wrote on last edited by
        #3

        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.

        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