How exactly? I've hcked games before, and you don't get to see the source code. All you get is the raw data in whatever hex editor of your choice. If you want to have more lives you have to track down the location yourself.
It's not as simple as "Oh look! lives=10! Let's just make that 100..."