Link to home
Start Free TrialLog in
Avatar of SkizoWalker
SkizoWalker

asked on

how to share memory block from a windows programm and a dos programm

As I read in MSDN :

Applications requiring shared memory for other purposes must use file-mapping objects. Multiple processes can map a view of the same file-mapping object to provide named shared memory. For more information, see File Mapping.

Question 1 : can i access it from a Dos based Programm if i use FileMapping ?

Question 2: If not ? How can i share a block of memory between a dos programm i made and a Windows Programm i made ?

Thanx Very much ..!
ASKER CERTIFIED SOLUTION
Avatar of jstolan
jstolan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SkizoWalker
SkizoWalker

ASKER

So when i map my memory block in a file map in my windows programm , my Dos based programm can open it with Fopen C command for example ?
Anyway , is there a way to allow low based memory in visual C++ (with segment and offset) ? or a better way to share memory block than using file mapping ?