hi i dont understand this error. i using idea from jetbains. may you could help. thanks
import win32.*
fun main(args: Array) {
println("Hello, World!")
MessageBoxW(null, "hi!","ho", MB_YESNOCANCEL or MB_ICONQUESTION)
}
IntelliJ IDEA 2017.3.4 (Ultimate Edition)
Build #IU-173.4548.28, built on January 29, 2018
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
If I understand the native support correctly CLion is the official Editor for Kotlin Native. There is also a gradle plugin but CLion does not support gradle. So the state of Kotlin Native support is kind of strange right now.
But I think the problem @SL5 is having is that he is trying to use a Kotlin Native library in a Kotlin JVM build, which is not possible. I am 99% sure MessageBoxW is the wrapper for the unicode version of MessageBox function (winuser.h) - Win32 apps | Microsoft Docs
Looking at the win32 sample in the zip file, I am now 100% sure. In there, there is a win32.def file importing the headers to windows.h which contains MessageBoxW function.