View Single Post
Old 07-02-08, 02:44 PM   #7
MustangSVT
Stop looking at me
 
MustangSVT's Avatar
 
Join Date: Jul 2004
Posts: 1,602
Default Re: A bit of help needed to make a simple program

Quote:
Originally Posted by ViN86 View Post
you can change the text in boxes from anywhere in the code. maybe you were thinking of C++ where you have private variables that you cannot change from other sections of code without a global variable?

you can also add events. so you can add an event that updates the output box when the dropdown menu is changed, or when the input value is changed, as jcrox demonstrated so perfectly.
Yup I added event when mouse clicks outside of the input button, I also check that the dropdown selection is not empty when updating and I made an "Update" button in case of any weird scenario where the output might not be changed after editing the input field.

Now I'm at the actual hard part. The algorithm to get the CRC code appears is a lot harder than I first thought. It'll take me some time to get this working properly. I need to parse some hex strings (bytes) with spaces in between them and then examine them in a weird fashion.
__________________
1. Q6600 @ 3.2, ASUS P5Q Pro Turbo, Powercolor HD 4890 CrossFire, 4GB Mushkin DDR2-1066, 3x 24" LCD, Matrox TripleHead2Go, Audigy 2 ZS

2. Q9550 @ 3.7, ASUS P5K, Galaxy 8800GT G92, 2GB Mushkin DDR2-1066, Samsung 710N + Samsung 205BW, Audigy 2 + SB Live! 5.1 (hooked up together, really), dad's comp

3. XP-M 2500+ @ 205x11.5, Gigabyte nForce2-400, GeForce4 Ti4200, 2x512MB OCZ DDR-400 "Premier", oldie
MustangSVT is offline   Reply With Quote