This question has certainly come up before in this forum. Have you done a search?
Note that exactly what sort of data you want to transfer may inform the technique that is to be used, since you can choose from such methods as a file, DDE, shared memory, streams, winsock, DLL/OLE ...