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

How do non-window program monitor system clipboard?

I want to write a program to monitor windows clipboard using C#. I found some post about this topic. According thread How to monitor clipboard content changes in C#? and Finding the handle to a WPF window, I write a demo using WPF. In all samples…
KyL
  • 987
  • 12
  • 24
3
votes
1 answer

Get window hwnd if owner hwnd, class name and size of the window are known

I need some specific help. I know the class name, the owner hwnd and the size of a window. How do I get its hwnd? Or, at least, get a list of all the windows meeting those conditions. Thanks in advance! Vali
Valentin Radu
  • 629
  • 1
  • 11
  • 26
3
votes
2 answers

Using Unreal 3 Engine within a .NET application

Now that the Unreal Development Kit for Unreal 3 engine is free I am thinking about utilizing it for an appication. Do you think it is possible to emebedd a Unreal 3 powered 3D window into a .NET (WPF or Windows Forms) and control parts of the…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
3
votes
4 answers

Interoperate between C# and Java using web services without a Java EE application server?

I'm in a difficult position: We have a 3rd party enterprise system that exposes a Java-based API. However, we are a 100% .Net oriented development team. Essentially, I need to wrap the Java API with something that C# code can call. Web services…
intoOrbit
  • 2,122
  • 2
  • 19
  • 21
3
votes
1 answer

Word Interop: Event to catch close of Word

My application uses Word interop for "active reporting" functionality. When the Word document is launched from the application, we set a EventWaitHandle to pause the application (creating a 'modal' effect) until the document is closed: …
Madeleine
  • 2,152
  • 2
  • 24
  • 35
3
votes
1 answer

C# Excel (2003) interop - Margins don't correspond to the input value?

I'm using dotNET C# to communicate with Excel 2003. I'm trying to change the print margins of the document, but the values that I put in, don't correspond to the margin values that Excel then uses... xls.PageSetup setup =…
Recipe
  • 1,398
  • 3
  • 16
  • 29
3
votes
2 answers

Working with HResult, interop and related things in C#

I am working on a project in C# to create a forms application. I would like to use IFileDialog and other functionality that is part of the native Windows API (or however ti should be called). Starting out I knew absolutely nothing about interop or…
Kris
  • 2,100
  • 5
  • 31
  • 50
3
votes
2 answers

PInvoke - reading the value of a string field - "Attempted to read or write protected memory"

I'm having trouble accessing the some string fields in a COM interface. Calling the integer fields does not result in an error. When attempting call clientID(), deviceID() or key(), I get the old "Attempted to read or write protected memory"…
Nathan Ridley
  • 33,766
  • 35
  • 123
  • 197
3
votes
1 answer

c# interop marshalling and disposing

I have a DLL, which is designed in C++, included in a C# project and I have strange AccessViolationExceptions happening unrationally. I suspect that my garbage isn't collected correctly. I have an unmanaged method apiGetSettings (from the DLL) which…
3
votes
1 answer

How to call a function not defined in the project?

Suppose you have the following: class Foo { public bar(): void { baz(); } } Where baz is the function which exists in JavaScript code loaded into this page, but which does not exist in this project. How do I hint TypeScript compiler that the…
user797257
3
votes
1 answer

CUDA OPENGL Interoperability: slow mapping

My application is going to take the rendered results from openGL (both depth map and the rendered 2D image information) to CUDA for processing. One way I did is to retrieve image/depth map by glReadPixel(..., image_array_HOST/depth_array_Host)*,…
3
votes
1 answer

Send Authenticated User To WCF Application

I have 2 applications; one is a ASP.NET 3.5 Ajax Application (Client) and the other is a WCF Web Application (BackEnd). The applications are deployed in a separate Windows Server 2008 over IIS 7. The backend application has the net.tcp and http…
VictorV
  • 1,009
  • 1
  • 12
  • 19
3
votes
1 answer

Excel Interop : Can you listen for a change in range value?

Is it possible, and if so how, to listen to changes in an Excel range from within C# using the MS interop libraries? I know how to read the value in a named range, but don't know how to listen and automatically pick up changes. Been through Google…
clicky
  • 865
  • 2
  • 14
  • 31
3
votes
1 answer

How to disable conversion message when opening Office 2007 doc using Office 2003?

I am working on a C# application which opens Excel workbooks using Interop. It works fine except for one annoyance: when opening an Excel 2007 document on a machine using Excel 2003, a small message pops up saying "File conversion in progress". Does…
Mathias
  • 15,191
  • 9
  • 60
  • 92
3
votes
3 answers

Do I need to rebuild and redeploy every time I upgrade a COM library used from my dotNet app?

I have a C# .net 2.0 windows app that uses a COM component. Visual Studio 2005 automatically adds an interop assembly DLL when I add the reference to this COM library. In case the COM component is upgraded frequently, what do I need to do to keep…
Adal
  • 41
  • 5