I have a WPF application that talks to a CLR class library that calls into C++. The reverse is proving more difficult. I've seen the method where you can pass a delegate as function pointer, but I find that too intrusive and need to change my C++ implementation to support it.
So I think my current best option might be to turn a class in my WPF application into a COM server. I have done so, but since this is a WPF application, there is no dll output. Clearly I could create another intermediate class library just for this COM object, and then use this class library from my WPF application. But is there a way to use the exe instead of a dll to register in WIndows?
Also, if I do use an intermediate class library, how do I get this COM object to talk to the rest of the WPF application? I can't instantiate it in my WPF program and have it CoCreated by the C++ native code that will be creating it as well....