![]() This will automatically register the DLL when you build it. Check Project Properties > Build Tab > "Register for COM Interop".You can register the DLL one of these ways: Registering the DLL on your development machine To call the DLL, you need to register it. ![]() That's all you need to do to create the DLL. In Project Properties > Build tab > Set "Platform target" to x86. This makes all public methods in the class COM visible. In Project Properties > Application tab > Assembly Information button > check "Make assembly COM-Visible". Also see: MSDN - How to: Raise Events Handled by a COM Sink. Assign GUID attributes to the class and interfaces as described in MSDN - Example COM Class (C# Programming Guide). The class should have an interface for the properties/methods and an interface for the events. To create the C# dllĬreate a solution with a C# class project. It turns out to be fairly easy to turn a simple C# dll into a COM dll. ![]() This is the answer I wanted to find in StackOverflow but couldn't. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |