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. Applictions Communication problem

Applictions Communication problem

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminhelpquestion
2 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.
  • R Offline
    R Offline
    ReBeL347
    wrote on last edited by
    #1

    Hello! I have 2 programs, one that waits for messages that the other posts for him. I need somehow to share my handle with the sending application so when I start the program, it will get the handle somehow and post a message to him and so on. The registry is one way but I don't like, a temp file is another but I don't like it either... There's got to be something better and elegant, some function I'm missing Any ideas? Thanks.

    J 1 Reply Last reply
    0
    • R ReBeL347

      Hello! I have 2 programs, one that waits for messages that the other posts for him. I need somehow to share my handle with the sending application so when I start the program, it will get the handle somehow and post a message to him and so on. The registry is one way but I don't like, a temp file is another but I don't like it either... There's got to be something better and elegant, some function I'm missing Any ideas? Thanks.

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      I don't know if DDE is still used widely, but you can take a look in the MSDN. As for the temporary file idea, you can use a CMemFile. Quote from MSDN: A memory file is useful for fast temporary storage or for transferring raw bytes or serialized objects between independent processes. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

      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