How about compressing your executable? For example upack, aspack or asprotect?

Upack is free and will prevent amateur hackers from changing your code.

You can make hacking harder but you will not prevent someone with skill from hacking your program. Many game companies spend millions on copy protection and yet often hacked versions of their game hit the streets before the legit version goes on sale.