Click here to Skip to main content
13,299,298 members (46,296 online)
Click here to Skip to main content
Add your own
alternative version


25 bookmarked
Posted 1 May 2006

Share memory throuth DLL

, 1 May 2006
Rate this:
Please Sign up or sign in to vote.
This discussed how more applications share them memory.
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS-->

Sample Image - Share_memory_throuth_DLL.jpg


Generally, each application has its own data segment. This mearn they are independent where two applications use a dll together. But, sometimes, we want to know what other applications are doing. So we want used a shared memory. There are many ways to do so, use a shared DLL section is one of them.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> 

Following is the simply step to create a shared memory.


1. Create a DLL project.


2. Create a segment named “.shared”, and create shared members at this section.


#pragma data_seg(".shared")<o:p>

      char theBuffer[1024] = "";<o:p>

#pragma data_seg()<o:p>


3. Define this section as shared. This is defined at TheDll.def file.



.shared   READ WRITE SHARED<o:p>


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Software Developer (Senior)
Australia Australia
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralMy vote of 1 Pin
cefarix30-Aug-09 13:31
membercefarix30-Aug-09 13:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 1 May 2006
Article Copyright 2006 by Denny50
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid