Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15430

VB6 EXE does not work, but runs from VB6 IDE

$
0
0
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)

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


Viewing all articles
Browse latest Browse all 15430

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>