15,891,372 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Articles / Desktop Programming / Win32
Go to Article
Stats
Revisions (5)
VC6
VC7.0
VC7.1
VC8.0
C++
C#
VB
Windows
.NET
Win32
How to do CreateFileMapping in a C++ DLL and access it in C#, VB and C++
nkrscorpio
Rate me:
Please
Sign up or sign in
to vote.
5.00/5 (8 votes)
10 Mar 2009
CPOL
83.1K
2.2K
57
This is yet another example for memory mapped files. What is cool though is unlike other samples, I have a SetData(TCHAR* Key, TCHAR* value) / GetData(TCHAR* key) pattern here.
mmf_setdata_getdata.zip
tubelite
bin
Client_CSharp.exe
Client_CSharp.vshost.exe
Client_CSharp.vshost.exe.manifest
Client_VBNET.exe
Client_VBNET.xml
Client_Win32Console.exe
Client_Win32Console.ilk
SHAREDMEM.dll
SHAREDMEM.exp
SHAREDMEM.ilk
SHAREDMEM.lib
CSharpConsumer
bin
Debug
WindowsFormsApplication1.exe
Client_CSharp.csproj
Form1.cs
Form1.Designer.cs
Form1.resx
Program.cs
Properties
AssemblyInfo.cs
Resources.Designer.cs
Resources.resx
Settings.Designer.cs
Settings.settings
sharedmem.sln
SHAREDMEM
dllmain.cpp
module.def
ReadMe.txt
Release
BuildLog.htm
mt.dep
sharedmem.dll.intermediate.manifest
sharedmem.pch
vc90.idb
sharedmem.cpp
sharedmem.h
sharedmem.vcproj
sharedmem.vcproj.Pranav-PC.Pranav.user
stdafx.cpp
stdafx.h
targetver.h
UnmanagedConsumer
ReadMe.txt
Release
BuildLog.htm
mt.dep
Test1.exe.intermediate.manifest
vc90.idb
stdafx.cpp
stdafx.h
targetver.h
Test1.cpp
Test1.vcproj
Test1.vcproj.Pranav-PC.Pranav.user
VBNETConsumer
bin
Client_VBNET.vbproj
Form1.Designer.vb
Form1.resx
Form1.vb
My Project
Application.Designer.vb
Application.myapp
AssemblyInfo.vb
Resources.Designer.vb
Resources.resx
Settings.Designer.vb
Settings.settings
��<