I have had both. As a career Pro-Firefighter. Keeping hydrated helps but at times wearing 75-80 pounds of gear and summer heat 90's and above never mind the temps involved in a building fire it happens.
Cooling the body off is the treatment. You were still functioning get in a cool shower. In the city I lived and worked water temp equaled the reservoir temp any where from 70-80 degrees That will work for heat exhaustion
Heat stroke is transport time to Hospital as you will need fluids and real cooling in an ice water bath under care. Care needed asap.
Don't play with it cause if you are by yourself you may just collapse and fry your brain.