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.
can anyone tell me where i did wrong?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





Reply With Quote