Questions tagged [language-interoperability]

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.

193 questions
0
votes
1 answer

Socket programming in language interoperability

I was wondering whether different (high/mid level) languages (c/c++/java/c#) supporting basic networking features like sockets, can work/communicate together on different platforms? Are there any existing projects (open or otherwise) to make it…
0
votes
1 answer

Missing entry point in my C#/C++ interoperability

I work on my program, which I need for my bachelor work(C#/C++ interoperability) and I have problem with missing entry point in my code... I try create simply number generator, which will be genarated number in C++ class calling from C# ... At first…
0
votes
1 answer

How to using a struct defined in the c header for fortran?

I have a *.H that define a struct. Like this: #define nfloats 9999 #define nword 655 typedef struct { int a short b unsigned short d float e char t[nword] short un[14] float dat[nfloats]; } datafile In a void c all parameters of datafile is…
0
votes
1 answer

error LNK2019: unresolved external symbol "extern "C" what is this error?

i was trying to wrap cimg library inside c++/clr and when i try to build it i get a bunch of Link errors. Error 20 error LNK2028: unresolved token (0A0002AC) "extern "C" int __stdcall DestroyWindow(struct HWND__ *)"…
Serak Shiferaw
  • 993
  • 2
  • 11
  • 32
0
votes
2 answers

Possible compatibility issues inheriting from a C struct

Background: We're implementing a dynamic library in C++ that extends the functionality of a C program. For one of the main structs used in the C program, we would like to add our own library specific fields. Currently when we need a new field, we…
shroudednight
  • 605
  • 4
  • 16
0
votes
2 answers

Naming conventions used in Platform Invocation in .NET

I have been using the Microsoft P/Invoke Interop Assistant tool to generate some structures, delegates etc. from native C/C++ code. An example of one of these is a function pointer (delegate), which resolves in managed code to the following…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
-1
votes
1 answer

Pass a function body from C to C++

Not sure if this is even possible. I need to pass a function from C to C++. It cannot be a function pointer. C++ Function that I need to call: template void parfor(int N, Lam lam) { lam(i); } C Function that I want to give to parfor…
-1
votes
1 answer

how to use a swift pod in objective c project without manually writing @objc in pod classes?

In my objc project I need to use a swift pod. For this purpose I need to add @objc in swift pod classes only then I am able to use the delegates and other properties in objective c classes. My question is : Is there any way to use swift pod into…
swiftDev
  • 41
  • 1
  • 5
-1
votes
1 answer

why can't printf a complex number when passing it from fortran to c

I'm trying to printf a 1D array of complex numbers (c_double_complex)that is filled in the Fortran90 code and allocated in C code. However, when printing the array in C (using %f) after passing it from the Fortran code, only the first complex number…
-1
votes
3 answers

What do HRESULT, DWORD, and HANDLE mean in unmanaged code?

I was reading about Marshaling. and im confused because what does mean this in unmanaged code. HRESULT, DWORD, and HANDLE. The original text is: You already know that there is no such compatibility between managed and unmanaged environments. In…
-2
votes
1 answer

Passing a pointer to COM interface pointer from managed c++ to .NET C#

I have a COM Dll written in unmanaged C++ that expose a com interface. The trivial sample of idl is shown below: import "oaidl.idl"; import "ocidl.idl"; [ object, uuid(A806FAED-FCE2-4F1B-AE67-4B36D398508E), dual, nonextensible, …
Alessandro Ciurlo
  • 102
  • 1
  • 2
  • 11
-3
votes
1 answer

Golang - Python interoperability

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 call funcions from golang.
Amparo
  • 784
  • 1
  • 4
  • 21
-6
votes
2 answers

How to run C code in Java

I have found Java to be an excellent high level language but it lacks some of the speed and flexibility of its founding language C. Seeing the Android OS was written in C and Java it seems likely that these two languages compliment each other…
1 2 3
12
13