Quantcast
Viewing all articles
Browse latest Browse all 168

[RESOLVED] [VB6] - how detect if 1 window is open?

i have these code for:
1 - call the compiler;
2 - testing if the compiler continues open;
3 - if the compiler is closed, then open the exe.
Code:

Private Sub mnuCompileCompleAndRun_Click()
    Call mnuCompileCompile_Click 'open the compiler
    Do
        If FindWindow(App.Path & "\MinGW32\bin\gcc.exe", vbNullString) <> 0 Then
            'is open
        Else
            Exit Do
        End If
        DoEvents
    Loop
    Call mnuCompileRun_Click 'open the exe
End Sub

can anyone tell me where i did wrong?

Viewing all articles
Browse latest Browse all 168

Trending Articles



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