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
18
votes
1 answer

How can I invoke a static method on a .NET object over COM interop?

Is it possible to invoke a static method on a .NET Object, via COM interop? I know I could write a wrapper class. What if I don't wanna do that?
Cheeso
  • 189,189
  • 101
  • 473
  • 713
18
votes
4 answers

WinForms Interop, Drag & Drop from WinForms -> WPF

I'm trying to drag data from the Winforms portion of my application on a WPF controls that's contained inside an "ElementHost". And it crashes when I try doing so. Trying the same thing but from Winforms to Winforms works fine. (See example code…
SuperOli
  • 1,784
  • 1
  • 11
  • 23
17
votes
8 answers

Reg Free Com with VB6.exe on Windows 7

I have some .NET code I use from VB6 code. I have always developed this on an XP machine by creating a VB6.exe.manifest file that listed the dependent .NET assemblies. For example, say my 2 .NET assemblies are Some.Assembly.A.dll and…
user210757
  • 6,996
  • 17
  • 66
  • 115
17
votes
2 answers

missing Embed Interop Type property

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…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
17
votes
3 answers

How to pass a typed collection from clojure to java?

I know the basics of clojure/java interop: calling java from clojure and vice versa. However, I was not able to return a typed collection from clojure to java. I am trying to see something of that nature List from the java code which is…
user258030
  • 399
  • 3
  • 10
17
votes
1 answer

How to return a vector of structs from Rust to C#?

How is it possible to write Rust code like the C code below? This is my Rust code so far, without the option to marshal it: pub struct PackChar { id: u32, val_str: String, } #[no_mangle] pub extern "C" fn get_packs_char(size: u32) ->…
Raj Felix
  • 685
  • 5
  • 16
17
votes
3 answers

Parsing a .NET DataSet returned from a .NET Web Service in Java

I have to consume a .NET hosted web service from a Java application. Interoperability between the two is usually very good. The problem I'm running into is that the .NET application developer chose to expose data using the .NET DataSet object. There…
Chris Dail
  • 25,715
  • 9
  • 65
  • 74
17
votes
1 answer

Visual Studio 2010 64-bit COM Interop Issue

I am trying to add a VC6 COM DLL to our VS2010RC C# solution. The DLL was compiled with the VC6 tools to create an x86 version and was compiled with the VC7 Cross-platform tools to generate a VC7 DLL. The x86 version of the assembly works fine as…
Adam Driscoll
  • 9,395
  • 9
  • 61
  • 104
17
votes
8 answers

How can I save a very large MATLAB sparse matrix to a text file?

I have a 30000x14000 sparse matrix in MATLAB (version 7), which I need to use in another program. Calling save won't write this as ASCII (not supported). Calling full() on this monster results in an Out of Memory error. How do I export it?
Midhat
  • 17,454
  • 22
  • 87
  • 114
17
votes
7 answers

Combining Lisp and PHP code in the same application

At the moment I use PHP for almost everything I develop for the Web but its linguistic limitations are starting to annoy me. However, as I developed some practices and maintain some PHP libraries that help me a lot, I don't feel I'd be ready to just…
Meisner
  • 775
  • 11
  • 18
16
votes
6 answers

Why does an 8-bit field have endianness?

See the definition of TCP header in /netinet/tcp.h: struct tcphdr { u_int16_t th_sport; /* source port */ u_int16_t th_dport; /* destination port */ tcp_seq th_seq; /* sequence number */ tcp_seq th_ack; …
Claudiu
  • 224,032
  • 165
  • 485
  • 680
16
votes
7 answers

Changing an Excel cell's backcolor using hex results in Excel displaying completely different color in the spreadsheet

So I am setting an Excel cell's Interior Color to a certain value, like below: worksheet.Cells[1, 1].Interior.Color = 0xF1DCDB; However, when I then open up the spreadsheet in Excel, I see that the color that came out is completely different (in…
Amberite
  • 1,379
  • 3
  • 14
  • 27
16
votes
5 answers

Java and MSMQ

I was curious if anyone had any suggestions on a Java library that provides access to MSMQ? I've downloaded the trial of the J-Integra Java-COM library and have built and run their MSMQ example app, but I was curious if there were any good (free…
Andy White
  • 86,444
  • 48
  • 176
  • 211
16
votes
10 answers

What is the best way and recommended practices for interacting with Lotus Notes from C#

In particular, I have to extract all the messages and attachments from Lotus Notes files in the fastest and most reliable way. Another point that may be relevant is that I need to do this from a secondary thread. Edit Thanks for the answers - both…
Phil Haselden
  • 2,876
  • 3
  • 30
  • 25
16
votes
3 answers

Which is better/safer to use: HandleRef or IntPtr (newer source code from Microsoft no longer uses HandleRef)

For example, in the old .NET Framework 2.0 Source Code (Windows Forms, Visual Studio 2005 - Whidbey), the GetClientRect function was defined using HandleRef: [DllImport(ExternDll.User32, ExactSpelling=true, CharSet=CharSet.Auto)] public…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65