I have a .NET Winforms app written in C# and VB.NET (using VS 2015 Community), which I need to make COM visible so users can write scripts in Python (should also work in any language with COM support) using a COM object to submit commands. I need it to work registration free to avoid hassles with Registry settings, and users should be able to connect with an existing app (i.e. GetObject() calls instead of Dispatch() ). I've found several links for steps to do this, but I can't get my project to work.
What I want is a working project showing how to do this in .NET. The main form should be a VB.NET project. The COM assembly can be any language (C#, VB.NET, ,C++) as long as it can send commands to the main form and return a string result. It can be a simple form with a single textbox, that shows whatever command is issued by a calling Python script. The steps would be,
- Open the form
- Run a python script from a Windows command prompt to connect to the form
- Send a command to the form
- Save/process the return string in the Python script
I am guessing this is easy for someone who has done this before. I am just having trouble getting my project and manifest file settings correct. Below is a link for the closest reference I could find, but again I could not get it to work.
[login to view URL]
it isn't difficult to export COM from .net DLL but if you want to connect with current install of the application, you need some code inside the COM and I known how to do it . Inbox me for more detail.
5 freelance hanno fatto un'offerta media di $123 per questo lavoro
I can work for you. I'm interested in your project. I've an experience of works with so many C#.NET projects, even windows form or WPF. Ping me any time to discuss about this project.