I am looking for some information on how to achieve something with libraries in C++ and c#. What I would like to know is how to approach the following problem:
- C# application: -has a window
- C++ library: -has a function called create_button(x,y), when
invoked, it will create a button on
the c# application's window. (if the C# application is not running,
nothing will happen) - C++ application: -dynamicaly links to the C++ library and calls the create_button() function.
How would I approach this problem, I would be glad to hear some of your ideas. The platform is windows. My question is, how would I let the C++ library communicate to the c# application to create a new button? Is it linked, sockets, ... I'm particulary thinking of GTK+ in linux, you link to the gtk+ library, but how does the library interface with GNOME to create a new window etc, something like that. I'm not interested in writing dlls and linking those to a c# application, I'm interested in creating an in-between library.