Question: I have a dll that I can load in another program. Now the dll has access to all data/functions in the other program.
Which technology can I use that now an external program can send data/commands to that dll, to steer the other program, or get data from it ?
I mean, in the past that meant DDE, I think that was back in Windows 3.11/95 times. What can I use today? Which one is easiest ? Which one is fastest?
For simple, fast communication, you might consider Mailslots. They are quite easy to use. You interact with them like you would a file.
Mailslots are most appropriate when you want to broadcast commands to multiple recipients, or receive messages from multiple producers and your design can tolerate the occasional lost message. Named pipes, mentioned above, are better suited for single process-to-single-process, guaranteed-delivery IPC.
The good news
The bad news
Many samples are available, but I don't have enough rep yet to post more than the one on CodeProject in C++
COM is the de-facto standard IPC mechanism for Windows-focused applications nowadays.
It allows access across language-barriers, solves the binary interface compatibility problem, does transparent marshalling for you and has different threading models.
sharptooth summarized some facts nicely here.
Some common ones are:
Don't forget Remoting, for higher level possiblities in .NET