Hi,
my code in IDE can run , but build exe can't run,the following code add msgbox then can run ,why?
(mk_xxxx were dllimport dll file)
my code in IDE can run , but build exe can't run,the following code add msgbox then can run ,why?
(mk_xxxx were dllimport dll file)
Code:
Private Sub btnDARK_Click()
Dim result As Boolean
result = mk_Msr_AutoDarkCtrl(id, 0)
' When I put this MsgBox "OK" , it works......
result = mk_Msr_SetExpMode(id, 0)
result = mk_Msr_SetMaxExpTime(id, 500000)
result = mk_senr_Msr_Dark(id)
If result Then
Label6.Caption = "Dark : OK"
Else
Label6.Caption = "Dark : NG"
End If
End Sub