what's your eye power? check if your glasses are made perfectly as your prescription or if your power has changed. apart from the power issue,
long time in front of laptop or any other screen cause fatigue of the eye muscles which can lead to headache and also dryness of the eye.
i would advise you to first of all get your power checked again and remake your glasses if necessary. take frequent breaks and give your eyes some rest . put artificial tear drop preparation eye drops 3-4 times a day.
take a paracetamol in cases of acute onset of pain.
Dr. Anil Kumar Jain