Unity3d to C/C++

Hi Guys,
I have a project and it requires to pass data from Unity3d to another C++ software.
The data will be lot of information related to the character like a GPS device is fixed on the character.
I am just wondering how to do this. I know that DLL files are used to read information given from C/C++ softwares. This is reverse, so any advice would be of good help.
Basically this is Data Transfer between Unity3d & C++.

I found the solution. You will need to do the following

  1. In C++ create a Class Library that will convert to DLL later on.
  2. This class Library can do following a) Read & Write to memory mapped b) read and write to shared segment. Make sure in this file you create functions that can read and write to whichever method you are using.
  3. The C++ application can use the same DLL and also Unity. Both can use read and write functions to write shared memory of memory mapped files.
  4. For reading the DLL in unity, refer to Unity’s creating plugins for desktop.

Look at Microsoft Visual C++ MSDN website for more information. I will try to upload the project on Unity wiki for everyone to use.