Will it be possible to connect dll to kotlin as easy as “ctypes” in python? For example: cinterop.load (“name.dll”)
Nope, Kotlin is a statically typed language, you have to define the methods available in the dll. cinterops does just that for you automatically.
can i use dll from delphi if i write them a “.h” file?
It should, but you need to create import library, using dlltool from msys2-mingw64 distribution
And what exactly gives “.lib”, is it possible to use someone else’s dll without the delivery “.h” in the kit?
It should be “.dll.a”. Even more precisely - “lib*.dll.a”
You need to have the
.h and create the
.def. Then using cinterop you need to tell the compiler to link your dll in the app or library you are building. In the repository of Kotlin Native there are many examples. Most of them are not commented since K/N is still in beta.
In your opinion, how much time is needed for K / N to equal the readiness of kotlin to jvm.
How do I understand the development began in 2017, then this is at least 2-3 years?