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. C / C++ / MFC
  4. Transmit simple data through DLL

Transmit simple data through DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpperformance
3 Posts 2 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
    Mr Freeze
    wrote on last edited by
    #1

    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 :)

    S 1 Reply Last reply
    0
    • M Mr Freeze

      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 :)

      S Offline
      S Offline
      Steen Krogsgaard
      wrote on last edited by
      #2

      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"

      M 1 Reply Last reply
      0
      • S Steen Krogsgaard

        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"

        M Offline
        M Offline
        Mr Freeze
        wrote on last edited by
        #3

        ...hope that is as easy at it sounds ;)

        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