Hangman Project - Hammering out the bugs
Author |
Message |
BlindApex
|
Posted: Sun Dec 04, 2005 2:24 pm Post subject: Hangman Project - Hammering out the bugs |
|
|
So a friend and I have been working on this school project for a few weeks now. It's nearly complete but there's still those few bugs that we cant figure out...Any help is appreciated.
1) When entering the High Score form from the main menu, we get 'Error 52 - Bad file name or number'...debug sends us to frmPlay and the two forms aren't even related.
2) In 2 Player mode, if you press cancel when you are prompted to enter a word, it leaves the Word variable blank even though we have bulletproofed the code (See Function WordCheck at the end of frmPlay code)
That's all for now, if you notice anything else please let us know. And thanks in advance for ANY help you can offer!
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Hangman.zip |
Filesize: |
284.2 KB |
Downloaded: |
422 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Brightguy
![](http://compsci.ca/v3/uploads/user_avatars/527435178485ad4c287538.gif)
|
Posted: Sat Dec 10, 2005 6:49 pm Post subject: Re: Hangman Project - Hammering out the bugs |
|
|
1) In cmdHighScore_Click() you call frmPlay.Hide, which loads frmPlay into memory so that it can be hidden. Then, in the Form_Load, you don't end up opening any file because no category was set, and hence you get an error when you try to read from the file.
Also, remember that hiding a form does not unload it from memory. You should probably avoid hiding a form if possible.
2) In WordCheck, you check if Word is a zero-length string... but how can it? You declared Word to be a 15-character string!
|
|
|
|
|
![](images/spacer.gif) |
|
|