Dear All,
I have a linux-based application, and a Windows C code in Visual Studio.
The Linux based library is built under MinGW.
I want to share a video file between these two, say processes (as I run my Windows C code in Visual Studio, and this library's dlls, and lib's which are used in Visual Studio program are created under MinGW)
I simply want to open my video file in visual studio, then pass it to MinGW built library (using one of the functions in that library in Visual Studio code), and then this library will do some processing on the video file, and save it for me.
Initially, I thought the solution of Shared Memory should work, as both Visual Studio ,and MinGW understand CreateFileMapping(), and OpenFileMapping()
But now I see that whatever I write to named shared memory in visual studio, I cannot read in MinGW.
I even tried to write a simple string like "Hello World" in Visual Studio, and read it from the Shared Memory in MinGW, but the string isn't there apparently.
So, my question:
Is it possible to share a memory space between Visual Studio ,and MinGW? (I mean, was it a fault with my programs or it is the way it is!! [I think my program should work, as the same shared memory works between two Visual Studio samples])
And if not, what is your suggestion to my initial problem as described above (any other approach than shared memory?)