I have found that no mmatter the is cast[cstring] or not, the compiled app still crash after I click the button and the msgbox shows
here is the line in C header
XC_API BOOL WINAPI XEle_RegEventC(HELE hEle, int nEvent, void *pFun);
Run
here is what VB code does
Public Function OnClick(ByRef bHandle As Long) As Long
MsgBox "炫彩界面库"
bHandle = True
OnClick = 0
End Function
Private Sub Main()
XEle_RegEventC hBtn, XE_BNCLICK, AddressOf OnClick
End Sub
Run
