You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
I get function pointer from GetProcAddress API.
I want to indicate to use _stdcall type to invoke it. How can I implement it in Kotlin/Native?
Like this:
val handle = LoadLibraryExA("D:\DependLibsX86\skfapi.dll", null, LOAD_WITH_ALTERED_SEARCH_PATH)
val funcAdd = GetProcAddress(handle, "SKF_DisConnectDev")
val actualFunc = funcAdd?.reinterpret<CFunction<(DEVHANDLE?) -> ULONG>>()
How to invode actualFunc with _stdcall flag?
The text was updated successfully, but these errors were encountered:
Hello! First of all, I got to remind you about Kotlin/Native issue tracker migration(see #4079). Bugs should be reported to the YouTrack, while questions are preferable to be asked on the #kotlin-native slack channel.
In two words, there is no such option for now. As this is a quite uncommon scenario, can you explain a bit deeper - what's the reason behind using calling conventions from K/N?
Hello! First of all, I got to remind you about Kotlin/Native issue tracker migration(see #4079). Bugs should be reported to the YouTrack, while questions are preferable to be asked on the #kotlin-native slack channel.
In two words, there is no such option for now. As this is a quite uncommon scenario, can you explain a bit deeper - what's the reason behind using calling conventions from K/N?
Because funcitons in this dll is compiled with _stdcall flag, so if invoke pointer of this function without
_stdcall flag, it just can't work well. About the issue tracker, I get it next time, sorry!
I get function pointer from GetProcAddress API.
I want to indicate to use _stdcall type to invoke it. How can I implement it in Kotlin/Native?
Like this:
val handle = LoadLibraryExA("D:\DependLibsX86\skfapi.dll", null, LOAD_WITH_ALTERED_SEARCH_PATH)
val funcAdd = GetProcAddress(handle, "SKF_DisConnectDev")
val actualFunc = funcAdd?.reinterpret<CFunction<(DEVHANDLE?) -> ULONG>>()
How to invode actualFunc with _stdcall flag?
The text was updated successfully, but these errors were encountered: