I guess this explains why .net makes doing some "everyday" things such a pain (or impossible). In this case I simply want another instance of the same program to "talk" with the first instance - and pass a small amount of info. DDE, Mutex, BroadcastSystemMessage, whatever... .net makes doing many things so easy that I guess I was hoping there was an easy .net way to do everything. I feel like MS is pushing us to program with managed .net and at the same time tying our hands with limited functionality. It is a pain to Pinvoke everything... and to do so I figure I'm doing something wrong or "unsafe".
I guess my biggest issue is that I'm not sure where the edge of the .net cliff is. What has been wrapped in a .net class, and what hasn't. Really, I have spent the last couple of months trying to get my mind around .net, clr, managed code, etc. I feel like I have landed on Mars and in all, it makes me want to crawl back to my "old school" C with its fopen(), fprinf(), and BroadcastSystemMessage()... It may have been buggy, but at least I knew I could do everything if I found the right sample code and functions...
|