I have a windows-only scientific model that I need to control using a COM interface. Is there a way I can run this model through wine, but interact with it using the model's COM interface from code running natively on linux? I need to have my own code running on linux given the high-performance computing setup I have available.
Thanks,
Jeff
Interacting pragmatically with a win application through COM
-
- Newbie
- Posts: 1
- Joined: Tue Apr 17, 2018 10:14 pm
- DarkShadow44
- Level 8
- Posts: 1207
- Joined: Tue Nov 22, 2016 5:39 pm
Re: Interacting pragmatically with a win application through
Due to the nature of Wine (Not an Emulator), there shouldn't be that big of a performance impact. Code in wine is running natively, so to say. Did you test it out, do you know for sure the performance is not enough?
AFAIK COM is only available on windows. However, there is also Winelib - With that approach you could write code that uses the Winapi and still make Linux calls. So, you could make a wrapper for the COM objects to be used from Linux only code - Or just use the COM objects while writing Linux code.
AFAIK COM is only available on windows. However, there is also Winelib - With that approach you could write code that uses the Winapi and still make Linux calls. So, you could make a wrapper for the COM objects to be used from Linux only code - Or just use the COM objects while writing Linux code.
-
- Level 7
- Posts: 823
- Joined: Thu Aug 27, 2009 6:23 am
Re: Interacting pragmatically with a win application through
Another alternative might be controlling your application via VBScript. You can install the Windows Scripting Host under wine using winetricks. I'd first try it on Windows, create and run your application via a .vbs script. If it works, you could try it under wine. You'd have to install your application under wine, maybe register the COM controls, if necessary. I'm not an expert in that area and wine's COM implementation is somewhat incomplete, but it still might be worth a try. If it wouldn't work, you could file a bug report to help improve wine in the future.