5,806 questions
Advice
2 votes
3 replies
63 views
Chapel-Python interopability - export records (or interface with Python dataclasses)
I have the following use case. My main program is written in Python, and I want to accelerate some parts of it. The Python program makes use of dataclasses (~structures) to store parameters, arrays, ...
0 votes
0 answers
54 views
How to pass c preprocessor flags when making final exe with dart's new native assets and build hooks interop feature?
How do you pass the flags to the final exe like -D_DEBUG, /SUBSYSTEM:WINDOWS, -DCMAKE and so on to the final exe thats built when using dart's newest build hooks, native assets interop method? ...
Advice
1 vote
5 replies
90 views
How to align a byte array transferred from Blazor to Typescript via interop to a multiple of 2 bytes?
[EDIT] Updated this question with actual working code. (Note: This discussion talks about the way that the array interop works, which might be relevant.) I'm trying to transfer an array of shorts to ...
1 vote
0 answers
72 views
.NET 9 x86 interop BadImageFormatException on Azure VM but works fine locally
I have a .NET 9 console app built for x86: <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> <PlatformTarget>x86<...
1 vote
0 answers
134 views
Pass non-copyable C++ object from C++ to a Swift function
Here is a simple C++ structure (member method implementations are trivial and omitted for brevity): struct SWIFT_NONCOPYABLE CppStruct { CppStruct() {} CppStruct(const CppStruct&); CppStruct(...
1 vote
3 answers
115 views
Calling into a member function of a foreign C++ DLL with mangled names from Python
I have a C++ DLL I want to call into from Python. I have no control over the C++ DLL nor do I have its source code or headers. The mangled functions are of the form: 2980 BA3 005A3060 ?getFoo@FooLib@@...
2 votes
2 answers
107 views
How to return a String from swift to cpp caller
I am working on a C++ library with a Swift backend (the C++ code mainly serves as a bridge to Rust). I have the following: char* get_string(void* pBackend) { Backend* backend = (Backend*) pBackend;...
-2 votes
1 answer
111 views
Direct Swift C++ interop to integrate with the C++ using OpenCV [closed]
I am developing SPM and want to integrate C++ code base into SPM using Swift C++ interop. I have added c++ file in the SPM and tried to call CPP function in the swift file but it does not work. Below ...
3 votes
1 answer
166 views
C# Native AoT - How to get pointer to Managed class to pass as parameter to Com Object
I have implemented INetworkListManagerEvents interface to get network connectivity state changes as a C# class. In my project, the INetworkListManagerEvents is code generated via CsWin32 source ...
0 votes
0 answers
78 views
Problem with COM login (IBSesja) in Comarch ERP Optima – error 8007000E
I'm building a Windows Service in C# (.NET Framework 4.8) that should automatically import sales receipts from XML files into Comarch ERP Optima. The service is supposed to create a COM session using ...
0 votes
1 answer
230 views
Non-Blocking ncurses getch() in Java FFM
I have a Rust function named init that calls the following ncurses functions (in the following order): initscr(), cbreak(), keypad(stdscr, TRUE), getch() followed by endwin(). The init function looks ...
0 votes
1 answer
59 views
Flutter interop and decode image
in my Flutter application, users can set their avatar. Basically, it works like this: you choose a file (only images) a dialog appears and you can crop the circle for the avatar widget I'm using ...
0 votes
0 answers
52 views
My WPF application crashes intermittently when working with multiple windows
I have an application built with WPF using .Net framework 4.8 and windows APIs which runs as a windows application and opens an excel app (separate excel process) and from the excel app opens up a ...
0 votes
1 answer
67 views
C# Interop.Visio | Is there a way to collect unsaved progress from the Application?
I need to check that all the unsaved progress from Visio is in the UTF-8 encoding before I save the document. The reason I need this, is because the xml data is encoded in UTF-8 and I have people ...
0 votes
0 answers
109 views
Will memory allocated in a c++ DLL be recognized by c#
I can't figure out a good way to word this question since I'm kind of new to c++, but I found an image loading library called stb_image. It's pretty neat, but I have two questions I need to make sure ...