file mapping tutorial
244 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by filemappingtutorial
Scoop.it!

How to do CreateFileMapping in a C++ DLL and access it in C#, VB and C++ - CodeProject

This is yet another example for memory mapped files.
more...
No comment yet.
Scooped by filemappingtutorial
Scoop.it!

flipcode - Faster File Access With File Mapping

flipcode - Faster File Access With File Mapping | file mapping tutorial | Scoop.it

All of us have to access files in our programs. Sometimes it's infrequent, and happens only at the end or the beginning of the program. You use only a very small config file and you don't need it faster. But sometimes you have big databases, large files, and you have to look at them all the time while the program is executing. If you use these files with the common file handling functions, you soon go mad because the program is running very s-l-o-w-l-y. And if you copy the contents of all your files, problem gets worse, because you have to do all the memory handling by yourself.

Because of that, the Microsoft team developed a faster, and even easier way to get files working. Its called File Mapping and it's one of the things your mother should've told you but never did.

This tutorial will explain how to discover the secret your mother hid from you. It will also speak about normal file managing, so if you don't have any idea about files under Win32 and still use the C / C++ file libraries, this doc is for you.

more...
No comment yet.