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. C / C++ / MFC
  3. Passing data betwwen 16 and 32bit process

Passing data betwwen 16 and 32bit process

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • P Offline
    P Offline
    pangcy
    wrote on last edited by
    #1

    I need to pass data between from a 32-bit to 16-bit process. I was thinking of using memory-map file. But someone told me that under 32-bit the memory-map file is private and the 16-bit process cannot read the location. Is this true? Is there other way to pass data beside using memory-map file?:rolleyes:

    L 1 Reply Last reply
    0
    • P pangcy

      I need to pass data between from a 32-bit to 16-bit process. I was thinking of using memory-map file. But someone told me that under 32-bit the memory-map file is private and the 16-bit process cannot read the location. Is this true? Is there other way to pass data beside using memory-map file?:rolleyes:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Two methods come to mind, there may be more. 1) Use DDE (Dynamic data exchange). The DDEML library make this easier than using the DDE functions directory. There are examples with MSVC 1.5 onwards and/or platform SDK. MSVC 1.5 was 16 bit. 2) Use WM_COPYDATA and SendMessage(). This is defined for Win32 onwards, however there is nothing to prevent you using this message (you may need to define it yourself for Win16) in your 16 bit programs. I've done both of the above techniques in the past ('96/'97 ish) on both 16 and 32 bit OSes. Stephen Kellett

      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