Answer the question
In order to leave comments, you need to log in
Is there a C++ alternative for dynamic libraries?
This is the cry of the soul!
Hello.
I have chosen Python as my main programming language. And honestly, I don't regret it!
I can program under Windows, Linux.
But!
There are times when I can't find a way out!
1) Creation of dynamic libraries for compiled programming languages;
2) Productive code;
3) Programming for Android;
Kivy? It's funny...
4) Etc...
Moreover, the first one is the most important for me.
I only see 3 options. But none of them meet my requirements completely!
1. C++:
1) Yes;
2) Yes;
3) No!
No, you can! But compare C++ code for Android and C#/Java code and you will understand what I mean.
At the same time, there is a plus. C++ and Python can be used together!
2. C#:
1) No;
2) Yes;
3) Yes.
3. Java:
1) No;
2) No;
3) Yes.
Is there an alternative to C++? Or take a breath, take a breath and learn C++ and C# using C++ only for dynamic libraries?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
You obviously don't know how to cook.
C# allows you to export both COM objects and called functions
https://sites.google.com/site/robertgiesecke/Home/...
class Test
{
[DllExport("add", CallingConvention = CallingConvention.Cdecl)]
public static int TestExport(int left, int right)
{
return left + right;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question