I'm using Shell to execute a program and need to wait until the program has finished executing before continuing on with the rest of my code. I've tried using WaitForSingleObject WinAPI function and it caused the program I executed with my Shell command to freeze. Then I created a loop using the GetExitProcessCode WinAPI function and that bogged down the CPU so that the program that was being executed was running extremely slow. Has anyone else experienced this sort of problem with WaitForSingleObject or have another approach that I could use?
Does anyone know how to halt execution of your VB app for a certain amount of time? I'm looking into the Sleep WinAPI method right now, but haven't found any good examples on MSDN. If I could suspend execution of my program for a set amount of time that would remedy the situation as well. Thanks for all the help.
Does anyone know how to halt execution of your VB app for a certain amount of time? I'm looking into the Sleep WinAPI method right now, but haven't found any good examples on MSDN. If I could suspend execution of my program for a set amount of time that would remedy the situation as well. Thanks for all the help.