Create Unmanaged DLL for Writing and Reading from Memory Mapped File with Tests

2019.12.22 Consultation

Specification

Memory Mapped File Dynamic Link Library ("mmap.dll")

You are to create an Unmanaged DLL file for import into MT4. The purpose of the library will be to write to a Memory Mapped File and later read from that Memory Mapped File. Your output DLL file will have the following exported function

void CreateChannel(string fileName) # Create or Open Memory-Mapped File (MasterFile_[@fileName])

void WriteToChannel(string fileName, string data) # Write @data to @fileName

string ReadFromChannel(string fileName) # Read content of @fileName and return it as a string

void RefReadFromChannel(string fileName, string &recvString) # Read content of @fileName and pass by reference to @recvString

After creating the DLL file, you are to write a test MQL4 Expert that will read and write to and from the Memory Mapped Files created by the DLL library created.

Unmanaged DLL file best created with Visual C++

Here are some useful links

https://docs.microsoft.com/en-us/windows/win32/memory/creating-named-shared-memory

https://docs.microsoft.com/en-us/windows/win32/psapi/memory-mapped-file-information


https://gunnarpeipman.com/net-framework-4-0-using-memory-mapped-files/

https://www.red-gate.com/simple-talk/dotnet/net-development/sharing-caring-using-memory-mapped-files-net/

https://www.c-sharpcorner.com/UploadFile/b942f9/using-memory-mapped-files/



Responded

1
Developer 1
2019.12.22
Rating
4.92
(39)
Projects
61
39%
Arbitration
5
40% / 60%
Overdue
23
38%
Free
2
Developer 2
2019.12.22
Rating
4.92
(284)
Projects
549
39%
Arbitration
34
15% / 71%
Overdue
114
21%
Free
3
Developer 3
2019.12.23
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
100+ USD
For the developer
90 USD