Through Guru.com, I had a developer create a DLL for me to include in a Visual Studio Windows Service project. To test out his DLL, this developer included an EXE that would register the DLL on the system and he included the following code embedded in an Excel spreadsheet button's click event to call his object:
Set myObject = CreateObject("MyComponent")
resultStatus = myObject.doWork()
I need to have this work in Visual Studio - ideally without using Reflection - and so far I have fallen flat on my face. Given the type of code, DLLImport is not working, I cannot directly reference the DLL as .NET does not view it as a valid COM object and registering the object does not appear to add the object to the list of available COM components.
The DLL itself is written in Python, wrapped in a C layer for portability, and I need to figure out how to make this things accessible in .NET.