So, what can we use in nim to replace the long in VB?
2. in the VB version, strings are wrapped by a function
Private Function L(data As String) As String
L = StrConv(data, vbUnicode)
End Function
hBtn = XBtn_Create(8, 30, 100, 20, L("button"), hWindow)
How can we represented this convertor in nim? When I use string directly, the displayed characters are not what I expected. I also tried +$(string) in winimwinstr.nim, but the displayed character is wrong too.
3. in the VB version, an argument is the address of function
Public Function OnClick(ByRef bHandle As Long) As Long
bHandle = True
OnClick = 0
End Function
XEle_RegEventC hBtn, XE_BNCLICK, AddressOf OnClick
how can we do that in nim?
Thanks