Language Interoperability is the ability of code to interact with code that is written using a different programming language. Language Interoperability can help maximize code reuse and, therefore, improve the efficiency of the development process.
Questions tagged [language-interoperability]
193 questions
0
votes
2 answers
Setting values to Arrays in Dynamics NAV 2018
I built a class library application-dll in C# with the class definition below:
namespace Microsoft.Dynamics.NAV.NAVInteropHelper
{
public class WrapDecimalConvert
{
public static Type GetTypeofDouble()
{
return…

hopeforall
- 401
- 1
- 6
- 20
0
votes
1 answer
Passing swift string to c function char *
I am trying to pass a string argument from swift function wrapper to C function which takes char*.
This a c function
long swe_fixstar2_ut(char* star, double tjd_ut, long iflag, double* xx, char* serr);
The parameter star must provide for at least…

John
- 31
- 5
0
votes
1 answer
How to declare inherited inbuilt protocol so that it can be imported from another framework or app?
I am unable to call this swift file from a different app/framework as am getting the below error.
"Unknown class name 'WKScriptMessageHandler'"
This is the mySwift.swift which I have declared in a framework.
@objcMembers public class…
0
votes
2 answers
Accessing Fortran Common Block from C as Struct
I am trying to define and declare a set of structures in C, then interact with them in fortran before passing them back off to be manipulated in C functions. I understand that interoperability can be achieved through use of c structures and fortran…

DHarry
- 1
- 2
0
votes
1 answer
Access scala function in PySpark
I have a Scala library which contains some utility codes and UDF for the Scala Spark API.
However, I would love to now start to use this Scala library with PySpark. Using Java based classes seems to work pretty OK like outlined Running custom Java…

Georg Heiler
- 16,916
- 36
- 162
- 292
0
votes
1 answer
External naming of fortran subroutine inside a module using GCC
My objectif is to rename a fortran subroutine inside a module to be easily callable by C code (i.e. without the ___MOD_ prefix), and using GCC-6.3.0. I cannot use bind(c,name='') even if it works great. I have read that I should use…

ThomasGuenet
- 183
- 1
- 7
- 17
0
votes
1 answer
Interface Bokeh server with other javascript library
Can you interface the bokeh server with a Javascript library such as JQuery on the client side?
I want to implement an advanced form, and already have a Bokeh server app running.
However, as more and more work were being done I faced many issues…

Carmellose
- 4,815
- 10
- 38
- 56
0
votes
1 answer
Importing Swift into Objective-C: Objective-C header "-Swift.h" is not created
In my Swift Project, I added a new cocoa Objective-C class (UIViewController), Xcode prompted me whether I want it to automatically generate an Objective-C bridging header file.
I am a bit confused because the generated file is…

Malloc
- 15,434
- 34
- 105
- 192
0
votes
0 answers
Passing a pointer to an array in a COM Method called from c#
I have a COM component, from a thirdy part so I cannot change it and the exposed COM interface,
in this interface there are two methods like you can see in this extract of the idl declaration:
[
object,
…

Alessandro Ciurlo
- 102
- 1
- 2
- 11
0
votes
1 answer
Multiple Web Apps (Silverlight and ASP.NET MVC) on One Server
We are asked to add a module for a previously-developed main project. They want the new module to be written in ASP.NET MVC, however, the main project has been written using Silverlight. The two projects are completely separated (from UI to database…

Omid Reza Abbasi
- 60
- 8
0
votes
1 answer
importing interface module procedure from fortran into C
How should I import a fortran interface into C using extern?
Suppose I have the following fortran module:
!swapper module
module swapper
interface swap
module procedure swap_r, swap_i, swap_c
end interface
contains
!subroutine…

QuantumDot
- 293
- 1
- 3
- 10
0
votes
2 answers
Pass data between MATLAB R2011b and Python (Windows 7)
Hello Friends,
I want to pass data between MATLAB and Python, One way would be to use matlab.engine in Python or Call Python Libraries from MATLAB. But this approach requires MATLAB 2014 Version unlike mine which is MATLAB R2011b.
So I request you…

Abhishek
- 515
- 1
- 5
- 12
0
votes
1 answer
Calling C++ DLL from C# is ok under Windows 7 but fails under Windows 10
My program calls a C++ DLL from my C# program.
The problem is that the generated executable is running fine undex Windows 7 but not under Windows 10 !?
The steps are listed below:
I compile my C++ DLL using g++ (of TDM-GCC-64) in 64 bits.
I compile…

Olivier
- 11
- 3
0
votes
1 answer
Add method to companion object through implicits
With typical classes, you can create an implicit class to add new methods to other class instances, just like this:
implicit class IntWrapper(i: Int) {
def otherMethod(s: String) = println(s"i: ${i} with ${s}")
}
now you can…

pedrorijo91
- 7,635
- 9
- 44
- 82
0
votes
1 answer
Interoperability of different messaging protocols used by ActiveMQ
Apaches's ActiveMQ supports a wide range of different protocols and makes it quite easy to find a cross-language-client.
From reading the documentation I get the impression that ActiveMQ is capable of translating protocols, although it is not stated…

magic_al
- 1,930
- 1
- 18
- 26