I currently have 2 c++ programs running windows, one that creates a file mapping object that shares some variables, and one that opens the file mapping object and takes the variables and uses them.
I need the second program to ultimately be a C# console app, but I cannot find any information online about sharing memory in C#. I'll post my C++ code that I ultimately need to port over to C#.
Does anyone know how I would go about doing this? Thanks for your help!
#define MAX 500
#define BUF_SIZE 256
char szName = "Global\\MyFileMappingObject";
printf("Client Simple Simulator\n");
HANDLE hMapFile_1 = OpenFileMapping(
LPCTSTR pBuf_1 = (LPTSTR)MapViewOfFile(