Computer Science Canada Can't delete program |
Author: | RGB255 [ Thu Oct 12, 2006 6:31 pm ] |
Post subject: | Can't delete program |
So I've made my frst .exe and I found it doesn't want to work properly as an exe and I fixed the problem but now I can't delete my old program. Can anyone tell me what's wrong? |
Author: | Silent Avenger [ Thu Oct 12, 2006 6:35 pm ] |
Post subject: | |
You can't delete it because the program is technically still running even though you closed your form. So to delete your old exe you have to either restart your computer or do Ctrl + Alt + Delete and end the program that way so you can delete the exe. I suggest that next time you put the end function in your form unload sub procedure. |
Author: | NikG [ Fri Oct 13, 2006 2:19 am ] |
Post subject: | |
Wow Silent Avenger... considering the little info he gave, it's as if you knew exactly what his problem was. Can you read minds? (or in this case, other people's computers?) |
Author: | ZeroPaladn [ Fri Oct 13, 2006 12:26 pm ] |
Post subject: | |
lol, fixed my problem before i even posted it! thanks Silent_Avenger. BTW, I've just started VB6, so ill be on here more oftem from now on ![]() |
Author: | Silent Avenger [ Fri Oct 13, 2006 3:13 pm ] |
Post subject: | |
lol No I can't read minds or other people's computers. My grade 9 class had the same problem and people were trying to make their final project an exe and we didn't know of the end function and therefor when we needed to fix something we couldn't overwrite the old file. I found out the next day that I could delete the exe and I found out that the program still ran after you closed the form so I asked my teacher how to prevent this and he told us about the end function. |
Author: | RGB255 [ Fri Oct 13, 2006 4:01 pm ] |
Post subject: | |
By the looks of it you read ZeroPaladn's mind as well lol. So how exactly do I use the end function? |
Author: | Silent Avenger [ Fri Oct 13, 2006 4:20 pm ] | ||
Post subject: | |||
Here's some example code:
So that should make sure your program is no longer running when command 1 is clicked. |
Author: | RGB255 [ Fri Oct 13, 2006 4:33 pm ] |
Post subject: | |
Okay thank you it worked! I'm also wondering, where is the VB mod? |
Author: | Silent Avenger [ Fri Oct 13, 2006 4:54 pm ] |
Post subject: | |
Hmm I don't know where the VB mod is. I haven't seen him yet although I have looked at his account. |
Author: | cool dude [ Fri Oct 13, 2006 7:25 pm ] |
Post subject: | |
Silent Avenger wrote: Hmm I don't know where the VB mod is. I haven't seen him yet although I have looked at his account.
i don't think there really is an official VB mod but i know Tony and WTD come in the VB forums sometimes |
Author: | Silent Avenger [ Fri Oct 13, 2006 7:59 pm ] |
Post subject: | |
Well here's a link to his profile and I've never seen him around. Maybe he doesn't actually exist o_O? http://www.compsci.ca/v2/profile.php?mode=viewprofile&u=24 |
Author: | [Gandalf] [ Sat Oct 14, 2006 9:40 am ] |
Post subject: | |
Of course Homer_simpson exists... It's just that he hasn't been here in over a year. ![]() |
Author: | Silent Avenger [ Sat Oct 14, 2006 9:58 am ] |
Post subject: | |
Ahh okay so he does exist. |