I have a Windows Form application that I developed in C# to do a webcam capture. I need to call this C# form from an application development environment known as Magic (don't ask why).
If all i had to do was call a .exe I would be fine, but for complicated reason I'm not allowed to use .exe's in the production environment; therefor I need to have a DLL that can be loaded into the application. I can't use a C# DLL because it doesn't have a .def file like in C++ that exposes it's functions (if you can solve this for me then no need to go further). So therefor I need to find a way to create a C++ wrapper, that will provide the ability to pass data between the application and the C# windows form/DLL.
Most things I've read on here suggest to register it as a COM object but I can't do that because this will be deployed to 100+ machines and registering it for each individual one wont fly with our systems admin. Can anyone please help provide a guide or suggest which route I should start investigating? I've tried multiple methods that have all failed and I'm really looking for some help and guidance here.
See Question&Answers more detail:os