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.
<o:p>
Following is the simply step to create a shared memory.
<o:p>
1. Create a DLL project.
<o:p>
2. Create a segment named “.shared”, and create shared members at this section.
<o:p>
#pragma data_seg(".shared")<o:p>
char theBuffer[1024] = "";<o:p>
#pragma data_seg()<o:p>
<o:p>
3. Define this section as shared. This is defined at TheDll.def file.
<o:p>
SECTIONS<o:p>
.shared READ WRITE SHARED<o:p>
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.