Questions tagged [interop]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

When I add a comment in PowerPoint using Interop, it gives an error "Comments (unknown member) : Illegal value. "

When I am adding a comment in Office 365 PowerPoint using Interop, it gives an error Comments (unknown member): Invalid value. My code was working for a long time, but in the last few days after the ...
Sudhanshu Saxena's user avatar
-1 votes
0 answers
34 views

Is there a way to capture Azure MedTech FHIR messages before written to database

I'm trying to capture FHIR messages from the Azure Medtech service (Azure Health Data Services). I've no issue querying the FHIR DB service, however, I'd like to capture the FHIR message when it's ...
Don Langlois's user avatar
1 vote
0 answers
52 views

Actual address of COM object in C#

I have a COM object for which I am trying to get the actual underlying address of, so I can get the address of the vtable. I need this to be a valid numerical address because I need to be able to add ...
Feem's user avatar
  • 389
0 votes
1 answer
59 views

Avalonia window (textboxes) embedded in Autodesk Inventor not accepting input

I'm developing an Autodesk Inventor plug-in and I've chosen to use Avalonia for the UI. Inventor exposes the ability to create a dockable window. I'm not completely sure how it works behind the scenes ...
Bas Nederveen's user avatar
0 votes
1 answer
16 views

How does FHIR handle multiline markdown inside JSON?

I am working on a project to get medical data from a laboratory system. We want to use FHIR to serialize the data for exchange. I am now manually producing a few examples in which I take existing ...
Rumi P.'s user avatar
  • 1,688
0 votes
0 answers
25 views

MS Word Interop: Group image and label

I am trying to group the image and text in one shape using Microsoft.Office.Interop.Word in C# .NET Framework 4.7 application. At the moment of grouping I have strange error "Grouping is ...
dmi's user avatar
  • 132
1 vote
1 answer
33 views

Using LibraryImport to import same function in multiple dlls

I am creating a .net WebAPI to facilitate a gradual move from Delphi code to C#, but our codebase is very large at 1.5M+ lines of code. So we are trying to break our application into small libraries ...
Matt Baech's user avatar
1 vote
1 answer
36 views

How to call JavaScript function with params from ASP.NET Core 8 with JSImport interop?

Using a wasmbrowser project and ASP.NET Core 8 I can call .NET from Javascript with JSImport interop Microsoft documentation includes this example without any params. C# [JSImport("window....
jawk97's user avatar
  • 11
0 votes
0 answers
9 views

EnqueueBundle , google pub sub transport

i use enqueue Bundle with google pub sub in symfony 5, bellow the configenqueue configuration and when i send a command to queue i have this error pub sub error please any solution? thx. i put in ...
Khouloud Salhi's user avatar
0 votes
1 answer
20 views

Cannot create shared texture in D3D9 from D3D11 when using dedicated GPU

I'm working on an interop between DirectX 11 and DirectX 9 where I'm first creating a D3D11 Texture, get the shared DXGI handle and then create a D3D9 texture using the handle. For device creation I ...
svenno's user avatar
  • 1
0 votes
1 answer
37 views

C# System.MissingMethodException

I implemented a few Excel.Range extension methods which have been working fine for a while. The following one still works (I specified Range with using Excel = Microsoft.Office.Interop.Excel; because ...
Ludovic Wagner's user avatar
0 votes
1 answer
50 views

Interoperability of Infinity, -Infinity and NaN in JSON ecosystem?

I am trying to understand if there is some sort of portability of Infinity, -Infinity, NaN in the JSON world (StringNumericLiteral). I understand that Infinity, -Infinity, NaN are not specified in ...
malat's user avatar
  • 12.1k
-2 votes
2 answers
32 views

Interop-ed native C++ code that uses OR Tools in a Windows Container

Our company has a native x64 .DLL that links now to the OR Tools .LIB files. We're using this .DLL through C# interop in a FROM mcr.microsoft.com/windows/servercore:ltsc2019 Windows container. I did ...
eugen_nw's user avatar
  • 143
-2 votes
0 answers
62 views

Call C++ DLL with only __declspec exports from C#

I'm submitting a new question to a topic that has been discussed, as I can't find a solution or the exact same scenario as me. I'm creating a .NET 8 solution and I'm trying to call C++ functions from ...
Ralms's user avatar
  • 479
0 votes
1 answer
42 views

Cpp-Swift Interop fails with conformance to NSObject

I have a project where I m making direct swift calls from cpp as introduced in swift5.9. Below is my swift class whose method is being invoked on cpp. import Foundation public class MySwiftClass { ...
Vipul Gupta's user avatar
0 votes
1 answer
47 views

How can I miscatch non-CLS exception in C# < 2.0?

The question is as following. Basing on CLR via C# (4th ed.): All programming languages for the CLR must support the throwing of Exception-derived objects because the Common Language Specification (...
Dariusz Woźniak's user avatar
0 votes
1 answer
96 views

How to convert a cudaArray to a Torch tensor?

I am experimenting with Torch and CUDA. Using torch::from_blob() I was able to do the following so far: #include <cuda_runtime.h> #include <torch/torch.h> #include <iostream> #...
rbaleksandar's user avatar
  • 8,871
0 votes
1 answer
211 views

Unexpected compiler error whilst using new .NET LibraryImport attribute

I am trying to upgrade older code to support the latest features in .NET 7, namely LibraryImport, but I am having trouble with errors that others don't seem to have. All examples I can find require ...
Wannabe Programmer's user avatar
0 votes
0 answers
46 views

Transfer/ Unbox Julia's DataFrame objects and use as C++ object

I would like to (un)box complex objects like DataFrames created in Julia, from C++. So I can use as input data for my C++ code. For example, by loading MixedModels sample data dyestuff, and describing ...
eb.navarro's user avatar
0 votes
1 answer
35 views

How to export map from c++ to c# using Interop?

Hi I have a code like this in c++ extern "C" __declspec(dllexport) bool CallCustomObjectGetPropertyValue(AcDbObject* obj, long objId, std::map<std::string, std::vector<std::string>&...
Guinea Pig Taco's user avatar
0 votes
1 answer
29 views

How to Extract url address from excel cell using C# MS Interop

I have been trying to get the hyperlinks from cells on a file I'm reading in. The problem I'm having is that I have not been able to extract the entire address not sure what the syntax is or what's ...
David Palos's user avatar
0 votes
1 answer
67 views

How to fix the LibraryImport issue?

I have been trying to use this code in the WPF application developed using .NET 7. [DllImport("user32.dll")] internal static extern bool InsertMenu(IntPtr Menu, Int32 ...
Nijaguna's user avatar
0 votes
1 answer
20 views

Converting BMap<BString, Object> to Java Class in Ballerina

I'm working on a project in Ballerina and I need to convert a BMap<BString, Object> to a Java class. Additionally, I have a Java function that returns a Ballerina record object of type BMap<...
Chiran Sachintha's user avatar
0 votes
1 answer
20 views

C# Excel Interop Pivot Table Refresh COMException: 'Reference isn't valid.'

The line of code xlSheet.PivotTables("PivotTable1").PivotCache.Refresh(); returns this exception System.Runtime.InteropServices.COMException: 'Reference isn't valid.'
georgebreje's user avatar
1 vote
0 answers
105 views

How to launch a (Rust)Actix-web server as a lib from another thread

I want to launch my simple actix-web server from a c++ console app as a proof of concept. This is my attempt in the Rust code: lib.rs use std::{io}; use actix_web::{get, middleware::Logger, App, ...
pSquared's user avatar
1 vote
1 answer
26 views

Objective-C class properties not viewable on Swift playground

Question about Objective-C and Swift interoperability. I have some Objective-C headers and implementation files which I am using in a Swift playground for a bridging project. However the Playground ...
cauluCoda's user avatar
-1 votes
1 answer
15 views

Application using excel interop only collects and writes data one time

I have written a small application that collects data from a PLC and then writes that data to excel. When I open the application the first time I collect the data it works perfectly but, if I try to ...
Billy Hughes's user avatar
0 votes
2 answers
138 views

Returning strings from Delphi dll to C#

I have a delphi dll I want to return strings to a C# API. I am using Delphi 11, and .NET 7 I have asked a similar question before, which I got to work, with sending a buffer to delphi which got filled ...
Matt Baech's user avatar
1 vote
2 answers
65 views

Excel Interop C# - How to read individual cell characters

I would like to convert the Excel cell content to html (including font color, size, etc.) only with Microsoft.Office.Interop.Excel (Microsoft 365 64 bits / .NET 7.0) and no external libraries. I ...
Ludovic Wagner's user avatar
-2 votes
1 answer
35 views

how can we capture the nested elements in an xml?

I am trying to capture the sub-container information from the following XML using the tag subcontainer however I don't want the nested subcontainers to be captured. how can I do this? <sub-...
vmaya003's user avatar
4 votes
1 answer
117 views

BackdropScaffold containing a child AndroidView in the front layer

I am using a BackdropScaffold in compose where my front layer is an xml layout that I am integrating. The main problem is that when the front layer is active and the back layer concealed, the scroll ...
Bruno's user avatar
  • 319
2 votes
0 answers
59 views

EditText-backed TextField in Compose

I want to implement Image keyboard support into a Compose app. As this two-year-old issue shows, there are currently no public APIs to achieve it. Although TextInputServiceAndroid class has a fun ...
Calamity's user avatar
  • 810
1 vote
1 answer
42 views

doc.Activate() set to an null reference in c# for Microsoft.Office.Interop.Word.Application word

i used Microsoft.Office.Interop.Word.Application word to convert word file to pdf file.This is perfectly working in my local iis.But when i add this to cloud server,It gives me a this error. [...
hotflix's user avatar
  • 41
1 vote
1 answer
134 views

Crash "at <unknown> <0xffffffff>" when calling C# method from C which returns a value

I'm writing a native library in Go and C (thin wrapper) and interop code in C#. I can successfully register C# methods as callbacks with the library and then call them from C when they don't return ...
Kyohei Kaneko's user avatar
0 votes
0 answers
17 views

Can I have an app that has a full fledged native version and a full fledged flutter version combined and interoperable? (Android and iOS)

So I have an Android native app and an iOS native app. Each have their own github repositories. They are both live. I've redesigned the entire app in Flutter. It also has it's own repo. Here's what I'...
Devenom's user avatar
  • 935
0 votes
1 answer
30 views

How can we add sheets dynamically with a particular template in excel using excel interop in C#

Excel.Application xlApp = new Excel.Application(); Excel.Workbook xlWorkBook = xlApp.Workbooks.Open(@"D:\Template.xls"); Excel.Worksheet xlWorkSheet; xlWorkSheet = excelfile.Worksheets....
vmaya003's user avatar
0 votes
0 answers
51 views

Connecting to Virtual Channels using C# interop and Vanara.PInvoke

Despite my best efforts, I am unable to connect to a given virtual channel through WTSVirtualChannelOpenEx. Using this documentation, I have done the following: Added a subkey to HKEY_LOCAL_MACHINE\...
Aiden's user avatar
  • 7
0 votes
0 answers
38 views

How to mock Microsoft.Office.Interop.Word.Range.Tables with Moq?

I have been trying to mock it but get the null error when I tries to loop through tables in the range. This is what I have tried so far. var contentControlMock = new Mock<ContentControl>(...
Usmaniak's user avatar
1 vote
0 answers
49 views

Is it still possible these days for a C# program to capture the stdout of a native DLL? [closed]

I have a Console C# application that calls into a native DLL whose output I want to capture. I started off from the solution in this post Redirecting native dll stdout/stderr from within C# but so far ...
eugen_nw's user avatar
  • 143
1 vote
0 answers
103 views

LibraryImportAttribute incorrectly stating use of extension method and preventing compilation

I am using .NET 8 Preview 6 and Visual Studio 2022, updated today. I updated a library today, changing from DllImport to LibraryImport, but it indicates CS0755. Here is my imported method declaration: ...
IamIC's user avatar
  • 17.8k
0 votes
0 answers
89 views

Is it possible to use a React-Native library inside my native Java code for Android?

I am currently developing an app in Java for Android. There is a library written for React-Native that I would like to use inside my native code. I know that it is possible to integrate React-Native ...
Zerokerim's user avatar
0 votes
0 answers
51 views

Issue reading excel with interop

I am trying to read a specific excel file in this code: using System.Collections.Generic; using System.Runtime.InteropServices; using Excel = Microsoft.Office.Interop.Excel; namespace ConsoleApp9 { ...
Alex Quinn's user avatar
0 votes
0 answers
28 views

c# com server, interface registration or late binding, both failed

I have this com interface: namespace BuildingApp_Client { [Guid("5B5B731C-B37A-4aa2-8E50-42192BD51B17")] public interface iComObject { void Test(); } [ClassInterface( ClassInterfaceType....
Alireza Ahmadi Rad's user avatar
0 votes
1 answer
95 views

How to retrieve the raw data from opengl texture mapped in CUDA?

I'm trying to render a scene in OpenGL and map the color and depth texture data to a contiguous CUDA device_ptr, similar to glReadPixels but on GPU memory. Is it possible? The data type of color and ...
qcl's user avatar
  • 1
0 votes
0 answers
35 views

Merge blank cells in Interop

I want to merge a range of 3 cells for each row where the first cell and the last cell are set to "", however it does not seem to work for me. for(int i = 2; i <= 20;i++) { string a = ...
LiterallyGutsFromBerserk's user avatar
0 votes
0 answers
15 views

Office VSTO Add-In (C#): How to set the default e-mail signature via Interop? [duplicate]

I am attempting to set the default signature for new emails and email replies in a VSTO Add-In using Interop. I am utilizing code from this Stack Overflow post: Creating and adding Outlook Signature. ...
Lukin972022's user avatar
0 votes
1 answer
98 views

free pascal bindings for a typedef function inside a DEFINE macro and a number outside

This code is part of the sdl_expt.h and sdl2_expt.h headers, from EyeLink eye-tracking systems. It defines a function pointer type named getExButtonStates using the typedef keyword. The ...
cpicanco's user avatar
  • 224
1 vote
1 answer
59 views

How to remove "extern" functions in C and be able to use them from golang?

I have a C wrapper of C++ library that I want to use with golang. Overall path of callback that I want is golang->C->C++. I tested part C->C++, but face difficulties with golang->C part. ...
lvjonok's user avatar
  • 109
0 votes
0 answers
22 views

PowerPoint does not save modified properties

I am attempting to modify the Title and Author built-in properties of a PowerPoint presentation written in C# (using .Net Core 6, and the Microsoft.Office.Interop.Powerpoint assembly v2.12). While the ...
Nick's user avatar
  • 1,490
0 votes
1 answer
52 views

Is there any built-in or simple way to handle non-DOM event (from EventTarget) in Blazor?

For example, a Web Permissions API's PermissionStatus's change event? I can obtain the PermissionStatus object which is an EventTarget. Is there any simpler way to handle change callback from that ...
Luke Vo's user avatar
  • 18.5k

1
2 3 4 5
115