Headache can be due to multiple reasons like eye number, Migraine, Sinusitis , Digital eye strain as well other serious causes too..
If you are having headache after wearing glasses, then u have to check if glass made correctly or the number is correct or not
Health Tips
Use some lubricating eye drops also as you have lot of computer work