R
ray well
hi,
i have a app which has a help file, *.hlp, which the user can launch within
the program. i want the help file if it is open to close when the program
exists.
the way i did it till now is by running the following code when the program
closes
Dim proc, procs() As Process
procs = Process.GetProcessesByName("winhlp32")
For Each proc In procs
proc.Kill()
Next
i wasn't too haapy with this because it would close ALL open help files even
those not opened by my app. but i was in a rush when i developed this, i
didn't get any complaints, so i just let sleeping dogs lie.
my client just installed the app on a vista machine, and he gets errors from
this code when he closes the app. i tried removing the "proc.Kill()" line,
and he still gets the error. when i removed this whole bit of code the app
closes without complaining.(but the help file remains open) so apparently
vista doesn't like when u look at processes.
i don't have a vista machine.
how can i get the apps help file to close when the app exits on a vista
machine?
thanks for any help
ray
i have a app which has a help file, *.hlp, which the user can launch within
the program. i want the help file if it is open to close when the program
exists.
the way i did it till now is by running the following code when the program
closes
Dim proc, procs() As Process
procs = Process.GetProcessesByName("winhlp32")
For Each proc In procs
proc.Kill()
Next
i wasn't too haapy with this because it would close ALL open help files even
those not opened by my app. but i was in a rush when i developed this, i
didn't get any complaints, so i just let sleeping dogs lie.
my client just installed the app on a vista machine, and he gets errors from
this code when he closes the app. i tried removing the "proc.Kill()" line,
and he still gets the error. when i removed this whole bit of code the app
closes without complaining.(but the help file remains open) so apparently
vista doesn't like when u look at processes.
i don't have a vista machine.
how can i get the apps help file to close when the app exits on a vista
machine?
thanks for any help
ray