|
-
Jun 30th, 2000, 05:05 AM
#1
Thread Starter
Fanatic Member
Does anyone know how to run a certain program, when SHUTTING down from WINDOWS?
Can you do it through the registry or with codes?
Thanks!
Chemically Formulated As:
Dr. Nitro
-
Jun 30th, 2000, 05:38 AM
#2
Hyperactive Member
Not sure about the registry, but if you have a program running, you can catch the form_queryunload event to find out why your program is quitting, one of the options is that windows is shutting down. Do what you want to do then :-)
-
Jun 30th, 2000, 09:16 AM
#3
transcendental analytic
Put and application to run att startup with
Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbAppWindows Then
Shell "C:\yourapppath\yourapp.exe", vbNormalFocus
End If
End Sub
and it will run your file at shutdown. I'm not sure but you can not allow threading in that app or the shutdown operation will hang up until you get an End task window. You could of course cancel the operation and restart it later
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 30th, 2000, 11:58 AM
#4
Thread Starter
Fanatic Member
Thanks CrazyD and Kedaman!
I think that is what I am looking for Kedaman.
Thanks Kedaman!
Chemically Formulated As:
Dr. Nitro
-
Jul 1st, 2000, 05:55 AM
#5
Thread Starter
Fanatic Member
Yep, that is what I was looking for Kedaman. Thanks.
Chemically Formulated As:
Dr. Nitro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|