Wed, 18 Jun 1902 08:00:00 GMT
running windows exe programs from Turbo Pascal
I am trying to call certain windows95 exe (e.g. media player) programs from my turbo pascal6.0 program. I have used the exec command and it will call and run the program and allow me to pass it parameters but I can't figure out how to get it to open the window maximized and more importantly how to get it to return gracefully to my pascal program after it has played the .wav file or I have clicked on the exit button in the program in windows. I have tried running a batch file from the pascal program using the exec command because then I could use the start /max batch file command (and pass parameters to the windows program and possibly get it to come back to pascal) but windows terminates the pascal program with a {*word*193} error message saying I "tried to execute an invalid instruction". Any suggestions on running batch files from a Turbo Pascal program or on opening and closing windows exe files from TP would be much appreciated. I've tried so many different combinations, my eyes are crossing!!
|