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

Word 2010 Interop: Show the "Save As" dialog

I need a way to always show the save as dialog when the user performs a certain action on a Word document. Currently, the dialog only shows when an unsaved document is saving. These documents I am working on have already been saved in one location…
BladeHal
  • 683
  • 1
  • 8
  • 26
3
votes
4 answers

Calling C++ function from C#, with lots of complicated input and output parameters

I am new to C# but have worked extensively with C++. I have a C++ function that needs to be called from C#. After reading some answers from SO and some googling, I conclude that I need to make a pure C interface to the function. I have done this,…
KMS
  • 766
  • 1
  • 7
  • 10
3
votes
1 answer

Mimicking Matlab Structures Using Java Objects

Here is my problem (big picture). I have a project which uses large and complicated (by which I mean contains multiple levels of nested structures) Matlab structures. This is predictably slow (especially when trying to load / save). I am attempting…
PaxRomana99
  • 564
  • 1
  • 5
  • 12
3
votes
2 answers

Is #pragma managed(push,off) in C++/CLI affects performance?

I'm coding a DLL for C# as a high-performance-module so I use C++/CLI because it's easy to referred in C# and supports native code. I found on msdn that using #pragma managed(push, off) and #pragma managed(pop) could make codes in it compiled as…
maverix3
  • 155
  • 11
3
votes
2 answers

Passing vector struct between C++ and C#

I have c++ unmanaged code that i want to access from c#. So i followed some tutorials and i build a dll for my project (only one class btw). Now i want to use it from c#, and i'm using p/invoke as follows. my question is: is it possible to marshall…
virgula24
  • 523
  • 5
  • 23
3
votes
9 answers

Fast (in means of developer time) way to use a lot of C++ code from Java

Background: We are designing a physics app, that will do a lot of data analysis, but our focus is integrating physical electronic equipement. Basically I would like to be able to call root (it's a big data analysis library from CERN written in…
jb.
  • 23,300
  • 18
  • 98
  • 136
3
votes
2 answers

Absolute COM Confusion - C# interop with early-binding

I've been battling with VStudio, Google and various other tools and websites all day and found no solution - HELP!! I have two COM interfaces (pure COM, no ATL): IMyClassFactory and IMyClass with corresponding implementations I want to use them from…
georgiosd
  • 3,038
  • 3
  • 39
  • 51
3
votes
1 answer

Replace MergeFields in a Word 2003 document and keep style

I've been trying to create a library to replace the MergeFields on a Word 2003 document, everything works fine, except that I lose the style applied to the field when I replace it, is there a way to keep it? This is the code I'm using to replace the…
willvv
  • 8,439
  • 16
  • 66
  • 101
3
votes
1 answer

Show system menu from another process (using WinForms, c#)

I'm trying to show the system menu (containing minimize, restore, etc.) from a different process in my WinForms UI. I understand that I need interop calls like GetSystemMenu and TrackPopupMenuEx but I failed to make it work. Can someone provide a…
Stefan Koell
  • 1,476
  • 3
  • 15
  • 25
3
votes
1 answer

adapt wrapper class for two dimensional case

This question is an extension of this question. I would like to adapt the wrapper for the two dimensional case. This is my first attempt: public class EmxArrayRealTWrapper : IDisposable { private readonly emxArray_real_T _value; private GCHandle…
cs0815
  • 16,751
  • 45
  • 136
  • 299
3
votes
2 answers

Access .NET generic objects from VBA

My .net code has an object with a number of generic properties. This object is returned to the VBA code. All the non-generic properties are working well, but I also need to access the generic values. Is there a way to do it from…
Yuri Astrakhan
  • 8,808
  • 6
  • 63
  • 97
3
votes
0 answers

OpenGL / OpenCL interop with shared contexes and multithreading

I am working on a project using OpenCL / OpenGL interoperability and multi-threading. Thread1 is used just for rendering of VBO and Thread2 is used for running OpenCL kernel which process geometry stored in VBO. The kernel is called several times…
mado
  • 31
  • 2
3
votes
1 answer

Shell_NotifyIconA / Shell_NotifyIconW...whats the difference?

I am porting some Win32 code to C#, and have come accross several functions which have the same names and use the same structures except that they end with A and W For example: [return: MarshalAs(UnmanagedType.Bool)] [DllImport("shell32.dll",…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
3
votes
1 answer

Problems with C and C# interop

I have a trouble invoking C function from my C# code. I wanted to add some functionality to VLC player(we use it in our software through vlcdotnet) and cross-compiled it on my ubuntu 12.10 for windows using mingw. I wrote a function, let's call it…
user355167
3
votes
1 answer

Where is CopyToNative defined?

I am currently browsing decompiled C# IL (with ILSpy) to get an impression on how some of the methods from System.Runtime.InteropServices are (could be) implemented. When I wanted to check how Marshal.Copy() is implemented, I found out that it only…
user1622959
  • 227
  • 3
  • 12
1 2 3
99
100