Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
85 views

I am trying to use a c++- style string in swift (C++ interoperability mode). I get an unusual, platform - dependent behaviour. The following function: public func readLine_CC(_ handle: ...
Artur P's user avatar
  • 83
0 votes
0 answers
150 views

Recently, in Swift 5.9 I think Apple released support for interoperability between Swift and Objective-C++/C++. I'm currently working on a project that has a lot of Swift, Objective-C and Objective-C++...
Noah Wilder's user avatar
  • 1,604
3 votes
0 answers
157 views

I was using Swift CPP interoperability in XCode 15. I used the code below to call and pass data from the CPP to the Swift side. IN CPP: class VideoPropertiesObserver { public: void (*...
Dipon's user avatar
  • 153
3 votes
1 answer
203 views

I am struggling with filling a string array in a C++ code. Here is what I tried to do: main.f90: program main implicit none character(len=100) arr(3) call get_string_array(arr, 100, 3) ...
TobiR's user avatar
  • 203
1 vote
0 answers
52 views

I have a maven project that contains two subprojects, one contains Clojure source, and the second contains Java source. This is the top level POM file: <?xml version="1.0" encoding="...
Jules's user avatar
  • 15.3k
1 vote
0 answers
85 views

I have a C library with a function Calculate_Integral that performs definite integration on a given C float function within specified limits and parameters. The signature of this C function looks ...
Akhil Akkapelli's user avatar
1 vote
1 answer
213 views

I'm working on migrating a web project from Java to Kotlin. During this process I'm faced with compilation issue that can make problems in the future, especially where the existing projects have to ...
Alexandr's user avatar
1 vote
1 answer
267 views

I have been using Jetpack Compose and koin. I am facing error as below java.lang.IllegalArgumentException: No view found for id 0x7f0a01d2 (com.pyronixhc2.android.app:id/fragment_container_view) for ...
amity's user avatar
  • 970
0 votes
1 answer
164 views

I apologise in advance for the very long message. I am seeking expertise in order to determine if what I am doing is safe/correct, or if alternatives exists. I have a C library that can hold a user-...
Gaétan J.A.M.'s user avatar
0 votes
0 answers
278 views

I revamp all my view controllers in SwiftUI. But still i am bound to use hostingVC for launching my SwiftUI views from scene delegate like below let splashVCHostingController = UIHostingController(...
Aaban Tariq Murtaza's user avatar
-2 votes
1 answer
355 views

I'm exploring the possibilities of mixing Swift and C++ for a project that involves VisionOS. The Swift official documentation on Mixing Swift and C++ mentions that C++ interoperability is supported ...
Raja Saad's user avatar
  • 494
1 vote
2 answers
308 views

I have a large Fortran code base for which I am trying to write a Python interface. I decided I would go the Cython route. However, I have derived types that are not C-interoperable. As an example, ...
tmph's user avatar
  • 201
0 votes
1 answer
112 views

I want to show user a alert in case my application stop before creating a window to show root view controller and i want to do this from a worker thread which will be running in a cpp file and will be ...
Abhishek's user avatar
  • 293
1 vote
0 answers
69 views

I'm trying to receive an array from JavaScript in my Go code func knapsackWrapper() js.Func { knapsackFunc := js.FuncOf(func(this js.Value, args []js.Value) any { capacity := args[0].Int() ...
Rodrigo's user avatar
  • 1,119
3 votes
1 answer
203 views

I am using the Mailgun Java API which is used to send emails. There is a .to method on a message builder that you use to populate the recipient's details. However, when I try to use this it tells me ...
willjsporter's user avatar
0 votes
0 answers
39 views

In the following Fortran code which uses C library the value of tol changes unexpectedly. What might be the reason behind this behaviour? PROGRAM ComplexIntegral USE farblib IMPLICIT NONE TYPE(fmag_t)...
Akhil Akkapelli's user avatar
1 vote
1 answer
128 views

I'm learning F# and would like to write simple F# library which can be consumed from C# application. It works as expected for trivial F# functions e.g. let Square x = x * x From C# I can consume it ...
tommyk's user avatar
  • 3,357
1 vote
2 answers
2k views

This question is about the parameter callback in Kotlin, which is by the way a very nice feature from my point of view! I have a method written in Kotlin like this one which expects a callback as ...
Mario646's user avatar
3 votes
2 answers
995 views

I wrote some backend code in C++ and I wrote a frontend for it in C#. What I want it to do is run the backend code in the background so I can do other things like update a progress bar, but when I ...
AlexP98's user avatar
  • 33
3 votes
1 answer
87 views

TL;DR: Is there a simple syntax in java to access kotlins backticked functions such as fun `if`(){...} Long Version: In Kotlin, one may write the following class. class ShapeShifter { fun speak() {...
Ar3s's user avatar
  • 2,317
1 vote
1 answer
1k views

There seems to be very little documentation on how to pass 2D arrays between VHDL and SystemVerilog. I have a port of the following type in VHDL: package my_package is type my_array_t is array (...
user15919506's user avatar
2 votes
0 answers
535 views

I recently faced a problem regarding interoperability between Java/Kotlin for suspend functions. See my question: How to Override a suspend function in java class. Both the answers seem to agree on ...
Abbas's user avatar
  • 3,353
1 vote
2 answers
2k views

Consider the following interface in kotlin: LoginRepository.kt interface LoginRepository { suspend fun login(): LoginResponse } LoginRepo.java class LoginRepo implements LoginRepository { ...
Abbas's user avatar
  • 3,353
1 vote
1 answer
605 views

I am currently trying to create a COM object that is made in C# in .NET Core 6.0. The COM object itself works as intended. The issue that I am having is related to the custom events that the COM ...
Spikxz's user avatar
  • 35
0 votes
0 answers
222 views

I am creating a COM object in C# .NET Core 6. The COM object has to enable both early and late binding. I am using Visual Studio and a .NET Core 6 class library, where I created a COM object, a COM ...
Spikxz's user avatar
  • 35
2 votes
1 answer
851 views

I am currently trying to create a COM object in .NET Core 6. To achieve this I have made a class library and edited the project like this: C#: Project file (*.csproj): <Project Sdk="Microsoft....
Spikxz's user avatar
  • 35
2 votes
1 answer
693 views

I have a NSData in Objective-C, the NSData has value 0x10, code like bellows: @implementation BufUtil + (NSData *_Nonnull) getOCBuf { std::vector<uint8_t> sendData = {0x10}; NSData * ...
bluesky's user avatar
  • 155
2 votes
3 answers
1k views

The following example illustrates what I am looking to do. The operation function receives a value and a function as a parameter, then returns the execution of the function. So far everything is ...
Alexandra Danith Ansley's user avatar
3 votes
1 answer
245 views

From the scala native docs at https://scala-native.readthedocs.io/en/latest/ this is how to access struct members: type Vec = CStruct3[Double, Double, Double] val vec = stackalloc[Vec] // allocate c ...
user573215's user avatar
  • 4,707
0 votes
1 answer
300 views

I am working on a project that requires me to independently verify the results of my Python code using another person's R code and a third person's Excel spreadsheet. (Yeesh.) Python was able to read ...
Elizabeth Rosenzweig's user avatar
6 votes
2 answers
457 views

I am working with a legacy Fortran library that requires a character scalar PATH as an argument to the subroutine. The original interface was: SUBROUTINE MINIMAL(VAR1, ..., PATH) CHARACTER (LEN=4096) ...
Sebastian Wieczorek's user avatar
6 votes
1 answer
2k views

I have written a little function await in order to handle async javascript function from go: func await(awaitable js.Value) (ret js.Value, ok bool) { if awaitable.Type() != js.TypeObject || ...
roman Sztergbaum's user avatar
2 votes
2 answers
478 views

@interface MyObjectiveCmainClass { @protected NSMutableArray* thisStringIsInaccessibleInSwiftSubclasses;//this I can't access in swift subclass } @property NSString* ...
keriackus's user avatar
0 votes
1 answer
3k views

I want to do a simple encryption from SecureGMC java to be decrypted in PHP using AES/GCM/PKCS5Padding. The data I'm suppose to be decrypting derives from the local bank, which emphasizes on IV_SIZE=...
tacotuesday's user avatar
-3 votes
1 answer
833 views

Is there any way to use python libraries like pandas, numpy, scipy, pytorch, ... from Go programming language? I know that these libraries are not programmed in python but in c, so maybe it is easy to ...
Amparo's user avatar
  • 824
2 votes
0 answers
2k views

I'm a software developer in a generalist company. We are a small team and I inherit some 20 year old software (like in a lot of companies I guess) This software is coded in C / C ++, with Visual ...
JohanB's user avatar
  • 21
0 votes
1 answer
776 views

I've come across a slightly complicated bug in some C code that I'm porting to Python using ctypes. I've been able to reproduce the problem in a minimal working example and was hoping to get some help ...
CiaranWelsh's user avatar
  • 7,779
1 vote
1 answer
353 views

I'm trying to use the ctypes callback feature to pass a python function to a C function as a function pointer. Here's the C: typedef void(*f1)(); void function_that_takes_a_function(f1* fn){ ...
CiaranWelsh's user avatar
  • 7,779
2 votes
1 answer
1k views

I have a similar problem to this question. I'm basically trying to create C structs from Python using ctypes. In C I have: typedef struct Point { int x; int y; } Point ; Point* makePoint(int ...
CiaranWelsh's user avatar
  • 7,779
1 vote
1 answer
264 views

I'm importing an ObjC static lib into my ObjC app but get 95 swift-related build errors. The ObjC static lib builds ok and contains .m .h and .swift source files. Swift file imports CoreBluetooth. ...
Doug Null's user avatar
  • 8,387
1 vote
1 answer
224 views

I have a Visual Studio solution with 3 projects named BaseCs, UseCs and UseFs (all .net core 3.1 libraries). BaseCs is in C# and has only one source file Definitions.cs containing a series of type ...
Franco Tiveron's user avatar
0 votes
0 answers
15 views

Just looking into Nativescript; the "core" bit of it seems really interesting in that you can call native APIs directly from JS, but it seems it is a completely different API for iOS and ...
Lee Portofino's user avatar
0 votes
1 answer
257 views

If the equals method in Scala is supposed to implement the original Java boolean Object.equals(Object x) method, I think it should be written def equals(that: AnyRef): Boolean. IntelliJ generates ...
ragazzojp's user avatar
  • 569
2 votes
2 answers
592 views

I have a Swift class called LoginCoordinator that performs a "Sign In with Apple" request. In order respond to callbacks it conforms to the ASAuthorizationControllerDelegate. Because of this ...
haskel-lightricks's user avatar
0 votes
1 answer
1k views

I am here for help in one of my tasks to integrate IBM Rhapsody models into VS 2019 C++ project.Here is what we are trying to do. Please note: I am not an expert in IBM Rhapsody Systems Engg tool. My ...
Asma's user avatar
  • 1
1 vote
1 answer
1k views

I have a framework target in which most of the classes are written in Objective C. Recently we have started introducing Swift files in the code. We make private Objective C files available to swift ...
Sagar D's user avatar
  • 2,628
0 votes
1 answer
271 views

I've made a library in Scala that has a Java API. I'd like to provide such a callback (Java): private static void onB(Stats stats) { //... implementation does not matter } The Scala API has this ...
akauppi's user avatar
  • 18.3k
0 votes
1 answer
211 views

I have a Python package that depends on binaries. I've build the linux version and it is available on PyPI. The key was setting the package_data argument to ensure the *.so files were also uploaded to ...
CiaranWelsh's user avatar
  • 7,779
2 votes
1 answer
830 views

Simple example of 'map_indexing_suite' usage is working fine: class_<map<int, string> >("testMap") .def(map_indexing_suite<std::map<int, string>, true>()) ; and on ...
Oleg Kmechak's user avatar
1 vote
0 answers
322 views

I'm a beginner programmer working within a mixed Java/Scala codebase. I have a implicit class in Scala that provides extensions to a class within a third-party dependency. The implicit class is as so: ...
hpabst's user avatar
  • 416

1
2 3 4 5