Set COM object to application running on Wine / Linux

Only one Windows application bothers me before I can completely switch to Linux. This is a mapping application (cannot find a suitable one for Linux) that I use with Wine.

This application has its own language and allows the user to create objects from COM components to implement external functions. On Windows, I created a program that uses Mono, which provides certain functions that allow me to interact with charting software.

Example:

myObj = CreateObject("myApp.application"); myObj.data = Price; volatility = myObj.Volatility; 

Question:. How can I show the ComVisible "myApp" components, which runs on Linux in Mono runtime, for wine graphics software?

+4
source share
2 answers

Unfortunately, mono and wine do not have much integration, so you cannot directly call the code hosted in Wine in Mono.

One option is to use the Microsoft .NET 2.0 framework in Wine . Only supported up to 2.0. This may or may not be a violation of the .NET license.

Another option is to write your own proxy server using winelib , which works in fault but listens on a unix domain socket for commands from your mono program.

Another option is to write the (rather complicated) code needed to talk to Wine mono over DCOM in mono. It would be quite difficult, but it would benefit everyone who wants COM objects to work in mono.

+1
source

You should be able to install the version of Windows Mono under Wine and run your code.

0
source

Source: https://habr.com/ru/post/1338039/


All Articles