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
26
votes
4 answers

How to create an instance of Excel if Excel is not installed

In my C# app, with the help of Excel Interop dll (as reference) i am reading/writing excel files. If I move this program to system where office/excel is not installed (think of clean machine), i am hitting with below…
Mahender
  • 5,554
  • 7
  • 38
  • 54
25
votes
6 answers

How to best convert VARIANT_BOOL to C++ bool?

When using COM boolean values are to be passed as VARIANT_BOOL which is declared in wtypes.h as short. There are also predefined values for true and false: #define VARIANT_TRUE ((VARIANT_BOOL)-1) #define VARIANT_FALSE ((VARIANT_BOOL)0) Which is the…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
25
votes
6 answers

How do I import from Excel to a DataSet using Microsoft.Office.Interop.Excel?

What I want to do I'm trying to use the Microsoft.Office.Interop.Excel namespace to open an Excel file (XSL or CSV, but sadly not XSLX) and import it into a DataSet. I don't have control over the worksheet or column names, so I need to allow for…
Justin Morgan - On strike
  • 30,035
  • 12
  • 80
  • 104
25
votes
14 answers

how to solve Exception:Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) in C#?

I have written a C# code in console application to open two excels and copy and paste data from one excel to another excel. It was working fine until the destination excel's visibility was true. But I need to hide the excel at the time of execution.…
Manoj Nayak
  • 2,449
  • 9
  • 31
  • 53
24
votes
2 answers

C# COM DLL: do I use Regasm, or Regsvr32?

I am building a C# ActiveX DLL... do I use REGASM or REGSVR32 to register it? How do I register the 64-bit interface vs the 32-bit interface?
Jason
  • 16,739
  • 23
  • 87
  • 137
24
votes
3 answers

Passing a vector/array from unmanaged C++ to C#

I want to pass around 100 - 10,000 Points from an unmanaged C++ to C#. The C++ side looks like this: __declspec(dllexport) void detect_targets( char * , int , /* More arguments */ ) { std::vector id_x_y_z; // Now what's the best way…
nali
  • 481
  • 1
  • 3
  • 16
24
votes
7 answers

Resources for learning c# Excel interop

What are some resources that will help get me up and running quickly with the Excel interop in C#?
yoyoyoyosef
  • 7,000
  • 8
  • 40
  • 39
24
votes
4 answers

Associating git commits with Team Foundation work items

Context A GitHub Enterprise installation used for development. Every developer has his own public repo, and the organization has the authorative repo. Pull requests are used for code reviews, and we loosely follow nvie's git flow branching model. A…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
23
votes
1 answer

Changing a C# delegate's calling convention to CDECL

I have had this problem with C# when I was using DotNet1.1 The problem is this. I have an unmanaged dll, which has a function which takes a function pointer (among other arguments). When I declare the DLLImport in C# code, I pass a delegate. But the…
Armen Tsirunyan
  • 130,161
  • 59
  • 324
  • 434
23
votes
4 answers

C# Excel Interop - Suppress 'Publishing' dialog when invoking Worksheet.ExportAsFixedFormat

I am using Excel Interop to open an xlsx file and save that as a pdf document. Upon invoking the 'ExportAsFixedFileFormat' method a dialog titled "Publishing" is displayed to indicate the progress. How can I suppress or hide this dialog? I have seen…
bjornno
  • 251
  • 3
  • 4
23
votes
9 answers

Embed bash in python

I am writting a Python script and I am running out of time. I need to do some things that I know pretty well in bash, so I just wonder how can I embed some bash lines into a Python script. Thanks
Open the way
  • 26,225
  • 51
  • 142
  • 196
23
votes
3 answers

Convert Interface IDL file to C#

I have an interface defined in an IDL file that I would like to use in C#. Is there a way to convert the IDL to something usable in C#?
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168
22
votes
1 answer

Cannot resolve an F# method that has been both overridden and overloaded from C#

The following F# code declares base and descendant classes. The base class has a virtual method 'Test' with a default implementaion. The descendant class overrides the base class method and also adds a new overloaded 'Test' method. This code…
nxn
  • 3,975
  • 2
  • 20
  • 17
22
votes
1 answer

Cneonction and nnCoection HTTP headers

We have often some issues in terms of interoperability on the Web. One of these issues for browsers vendors is the wrongly spelled Connection HTTP header. The most common errors are given by these two forms. nnCoection: Cneonction: There are has…
karlcow
  • 6,977
  • 4
  • 38
  • 72
22
votes
2 answers

What is the difference between AxInterop and Interop?

I've added an .ocx to the toolbox in VS. Two .dll's were created: Interop.NNN.dll, AxInterop.NNN.dll. What is each one? Are they both required?
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158