?
Solved

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

Posted on 1998-11-13
2
Medium Priority
?
236 Views
Last Modified: 2013-11-20
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 ..!
0
Comment
Question by:SkizoWalker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 200 total points
ID: 1324637
Yes you can share information using the file-mapping technique with DOS based programs.  It's basicly a super set of file handling.  Just use it as shown in the documentation.
0
 

Author Comment

by:SkizoWalker
ID: 1324638
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 ?

0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question