Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Hangman Project - Hammering out the bugs
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BlindApex




PostPosted: 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!



Hangman.zip
 Description:

Download
 Filename:  Hangman.zip
 Filesize:  284.2 KB
 Downloaded:  414 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: 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!
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: