Need help protecting software

I am using Code::Blocks with wxWidgets and need to know if there is source code for it that when implemented will work on Windows, OSX, and Linux.
Or if not could someone help me make some code.
I want it timed so that when a person has reached 15 days the software won't work any more. I also want it timed so that it expires in a year from purchase.
I also need a way to generate keys for those who buy them and a list of keys to exclude (because of piracy or other reasons).
Does anyone know some tutorials or books on this subject?
Thanks
Alcohol-Free Beer $15
Sorry.
Topic archived. No new replies allowed.