Newsgroups: comp.windows.ms.programmer
Path: funic!news.funet.fi!sunic!psinntp!psinntp!rpi!usenet.coe.montana.edu!caen!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!evolving.com!judy
From: judy@evolving.com (Judy Bettinger)
Subject: Shared Memory
Summary: sharing between DOS window and Windows 3.1 app
Message-ID: <1992Dec17.214015.97513@evolving.com>
Date: Thu, 17 Dec 1992 21:40:15 GMT
Organization: Evolving Systems, Inc.
Lines: 19


Is there a way to share memory between a Windows application and
an application running in a DOS window?  There are examples in the
documentation of sharing between two Windows apps or between Windows and
a DOS TSR, but I haven't found anything else.

I've tried GlobalDosAlloc and GlobalAlloc from the Windows side,
but the DOS application can't seem to see the location I've allocated.  
I could see in the debugger that the pointers both contain the same
segment and offset values, so then I marched a pointer through memory and 
found that the DOS app _can_ see the shared space, but the addresses are
completely different.  What's the relationship?

Can someone help? (I'm using Microsoft C, ver 7.0)
-- 
#include <std_disclaimer.h>
Judy Bettinger  (judy@evolving.com)
Evolving Systems, Inc.
Denver, Colorado
