I have one more question concerning the "GetModuleUsage" API function.
With help of the "Shell" and "GetModuleUsage" (= API function)
command I want to start several times a math software which reads input from a text file and does some very time consuming calculations with this input data.
So far my source code has the following structure:
Private Sub btnEndCommand_Click()
For i = 0 To 3
result = Shell("my_math_program.exe " , 6)
While GetModuleUsage(result) > 0
This attempt unfortunately has one very big setback:
In my VB sample procedure the user has to stop and start INTERACTIVELY
the single my_math_program sessions.
Is it possible to use "GetModuleUsage" in a "non-interactive-mode", too?
I would like to let us say 3 calculations being done during the night while
I am sleeping.
So I don't want to get up after each session and finish/start each session
by mouse click.
I want that each calculation session is started and finished AUTOMATICALLY,
without my interaction. So the second call of my_math_program should be
done after the first calculation is finished, the third call should be done
after the second calculation is finished, and so on.
Unfortunately one doesn't know the needed time for each calculation before,
so it makes no sense to start the calulation sessions in a certain time
What else could I try, If "GetModulUsage" is not the appropriate idea to
solve my problem?
If it is a help for you experts, I can send you this math program. It is
freeware so it can be freely distributed.
Any suggestions are highly appreciated.