Questions tagged [interop]

Interoperability is a requirement for one computer system or programming language to work with another.

Interoperability is a requirement for one computer system or programming language to work with another.

A number of computer systems, especially Microsoft's .NET Framework, reduce this term to Interop.

5732 questions
35
votes
5 answers

git forces refresh index after switching between Windows and Linux

I have a disk partition (format: NTFS) shared by Windows and Linux. It contains a git repository (about 6.7 GB). If I only use Windows or only use Linux to manipulate the git repository everything is okay. But everytime I switch the system, the git…
ramwin
  • 5,803
  • 3
  • 27
  • 29
35
votes
5 answers

Call R (programming language) from .net

I'm working on an application that requires a great deal of stastical processing and output as images in a .net desktop application. The problems, including generating the output images, seem like a natural fit for R http://www.r-project.org/ Is…
detroitpro
  • 3,853
  • 4
  • 35
  • 64
35
votes
9 answers

Referencing Google's V8 engine from a .NET app

I'm building a .NET 3.5 application and have the need to evaluate JS code on the server - basically a user provided rule set that can work within a browser or on the server. Managed JS is not an option, because the JS code would be provided at…
NathanD
  • 8,061
  • 7
  • 30
  • 26
34
votes
9 answers

Converting a C char array to a String

I have a Swift program that does interop with a C library. This C library returns a structure with a char[] array inside, like this: struct record { char name[8]; }; The definition is correctly imported into Swift. However, the field is…
zneak
  • 134,922
  • 42
  • 253
  • 328
33
votes
5 answers

Can I overlay a WPF window on top of another?

I have a WPF window, which contains a WindowsFormsHost element. I need to draw things on top of this element, but the nature of WindowsFormsHost means that it's always on the top of the drawing pile. As I cannot draw in the same WPF window on top of…
Garry
  • 341
  • 1
  • 3
  • 3
33
votes
1 answer

Using C/inline assembly in C#

Is there some method of using C source mixed with inline asm (this is not C++ code) in a C# app? I'm not picky about how it gets done, if it requires compiling the C/asm into a DLL alongside the C# app, so be it. I'm aware there's no provision for…
Tigress
  • 353
  • 1
  • 3
  • 5
33
votes
9 answers

Java and C# interoperability

I have two programs. One is in C# and another one in Java. Those programs will, most probably, always run on the same machine. What would be the best way to let them talk to each other? So, to clarify the problem: This is a personal project (so…
pbreault
33
votes
3 answers

Java <-> Scala interop: transparent List and Map conversion

I am learning Scala and I have a Java project to migrate to Scala. I want to migrate it by rewriting classes one-by-one and checking that new class didn't break the project. This Java project uses lots of java.util.List and java.util.Map. In new…
oshyshko
  • 2,008
  • 2
  • 21
  • 31
33
votes
4 answers

How to get type of COM object

I am referencing a COM library in Visual Studio, so it has automatically created the corresponding Interop assembly for me. I would like to do a GetType() on these com objects, but they always return System.__ComObject. Querying them for an…
user65199
31
votes
7 answers

.Net Excel Interop Deleting a worksheet

I'm trying to delete a worksheet from a excel document from a .Net c# 3.5 application with the interop Excel class (for excel 2003). I try many things like : Worksheet worksheet = (Worksheet)workbook.Worksheets[1]; worksheet.Delete(); It's doesn't…
Melursus
  • 10,328
  • 19
  • 69
  • 103
29
votes
5 answers

Scala and Clojure both in one project

I'm looking for a guide for polyglot programming in this two languages. I know that interop between them is possible, since they are both running on the same Java VM, and both got compiled to the same bytecode. But there is some cumbersomes: Can…
om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
29
votes
5 answers

How to check, programmatically, if MS Excel exists on a pc?

I have an application that needs MS Excel to run, otherwise it crashes. So I want to check and warn the user in case Excel is not installed on user's machine. How do I do this?
Christos Karapapas
  • 1,018
  • 3
  • 19
  • 40
29
votes
3 answers

Access x86 COM from x64 .NET

I have an x64 server which, since my libraries are compiled to AnyCPU, run under x64. We are needing to access a COM component which is registered under x86. I don't know enough about COM and my google searches are leading me nowhere. Question:…
Craig Wilson
  • 12,174
  • 3
  • 41
  • 45
29
votes
2 answers

c++/cli pass (managed) delegate to unmanaged code

How do I pass a function pointer from managed C++ (C++/CLI) to an unmanaged method? I read a few articles, like this one from MSDN, but it describes two different assemblies, while I want only one. Here is my code: 1) Header…
Ron Klein
  • 9,178
  • 9
  • 55
  • 88
29
votes
4 answers

Clojure: working with a java.util.HashMap in an idiomatic Clojure fashion

I have a java.util.HashMap object m (a return value from a call to Java code) and I'd like to get a new map with an additional key-value pair. If m were a Clojure map, I could use: (assoc m "key" "value") But trying that on a HashMap…
foxdonut
  • 7,779
  • 7
  • 34
  • 33