interop

.NET/C# Interop to Python

巧了我就是萌 提交于 2019-12-21 12:22:22
问题 My backend is written in .NET/C#, I have a requirement that I need to execute python scripts passing context from the .net side of the house. These are queued up in a background task engine called hangfire running as a windows service. I did a little digging and found IronPython, however, after implementing it failed to support many of the pypi python packages that I need to execute inside my script. Secondly, I looked at Python.Net which is a embedded interpreter that embeds or extends

Usefulness of JNI [closed]

大城市里の小女人 提交于 2019-12-21 10:51:09
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I've been a java developer for a couple years and have heard that you can do some pretty useful and powerful things with JNI. I don't

missing Embed Interop Type property

二次信任 提交于 2019-12-21 07:00:57
问题 In one C# project, I get the following warning: warning CS1762: A reference was created to embedded interop assembly 'Interop.SomeLibrary.dll' because of an indirect reference to that assembly created by assembly 'ALibraryOfMine.dll'. Consider changing the 'Embed Interop Types' property on either assembly. However, in the C# project that gives this warning, I do not see an Embed Interop Types property on the COM library reference Properties. That's in VS 2010. In the VS 2008 ALibraryOfMine

missing Embed Interop Type property

扶醉桌前 提交于 2019-12-21 07:00:11
问题 In one C# project, I get the following warning: warning CS1762: A reference was created to embedded interop assembly 'Interop.SomeLibrary.dll' because of an indirect reference to that assembly created by assembly 'ALibraryOfMine.dll'. Consider changing the 'Embed Interop Types' property on either assembly. However, in the C# project that gives this warning, I do not see an Embed Interop Types property on the COM library reference Properties. That's in VS 2010. In the VS 2008 ALibraryOfMine

Control Excel Within WebBrowser Control

霸气de小男生 提交于 2019-12-21 06:15:19
问题 I am trying to load a .xls file into a webbrowser control in my Windows Forms app in such a way that I can keep updating it with data programmatically. So, for example, as the user presses a button on the form, the data in the Excel sheet updates. I have managed to load the data into the control very easily: WebBrowser1.Navigate(PathToXLSFile) And, according to what I have read online, I should be able to now get control of that sheet using something along the lines of: Dim wb As Object

How to get the current open documents in Excel using C#?

天大地大妈咪最大 提交于 2019-12-21 05:22:09
问题 All I need is to get the list of currently open documents in the currently open instance of Microsoft Excel. But I don't know Excel terminology to know if these documents are called workbooks, or sheets, or windows, etc. Any ideas 回答1: Found it (link). //Excel Application Object Microsoft.Office.Interop.Excel.Application oExcelApp; this.Activate ( ); //Get reference to Excel.Application from the ROT. oExcelApp = ( Microsoft.Office.Interop.Excel.Application ) System.Runtime.InteropServices

How to unregister my .net assembly when it's no longer in the same location?

三世轮回 提交于 2019-12-21 04:59:19
问题 I have a dll that's registered for com interop, so under HKLM\Software\Classes\CLSID[my guid]\InprocServer32[my version no]\Codebase it has the path of the registered dll. However, I've rearranged my folder structure so that path is no longer correct. Is there a way of unregistering that dll without putting it back, then unregistering, then removing the file again? And what if I don't have that dll any more, or only have one with a different version number? 回答1: Different version numbers

Runtime callable wrapper (RCW) scope - process or application domain?

瘦欲@ 提交于 2019-12-21 04:42:11
问题 What is the scope of Runtime Callable Wrapper (RCW), when referencing unmanaged COM objects? According to the docs: The runtime creates exactly one RCW for each COM object, regardless of the number of references that exist on that object. If I had to "guess" - this explanation should mean "one per process", but is it really? Any additional documentation will be very welcome. My application runs in its own application domain (it is Outlook addin), and I would like to know what happens if I use

Are there features of R that are system-dependent?

拜拜、爱过 提交于 2019-12-21 04:39:29
问题 My co-workers would like to make sure that our work in R is platform-independent, specifically that code will run on Linux, Mac, and Windows, and that files created on one system will work on other systems. Since the issue has come up before in my group, I would appreciate a general answer that will make it easier for me to confidently assure my collaborators that there will not be an issue. E.g., it would help to have a reference other than "because (subject matter expert) said so on SO".

Remove ActivityId from WCF Request

好久不见. 提交于 2019-12-21 04:19:18
问题 I'm having an interesting compatibility issue between a WCF client and a Java web service. In short I've found that the way the header is generated is causing the problem - the ActivityId and Action elements in the header as well as what WCF is doing with the namespace of the custom header is causing issues. I've successfully consumed the WSDL with wsdl.exe, but WCF seems to be manipulating the header in a way that the Java web service doesn't like. Is there any way I can set up the bindings