If you have been suffering from the dual conditions of abdominal pain accompanied with vomiting for more than 24 hours, it is absolutely essential that you consult a doctor at once. The symptoms you have described sound suspiciously like a case of food poisoning. If indeed you are suffering from food poisoning, it is inadvisable to delay consulting a doctor for even a minute as this could not merely cost you your health but also your life. Keep in mind that if left unchecked, food poisoning can sometimes also be fatal. You should make it a point to go to the emergency room if you cannot go and visit a doctor. There is a possibility that you may have to get your stomach pumped and remove whatever offensive material is in there to make you feel better. In any case, it is always wiser to have an accurate diagnosis before you start doing something about the problem. A proper diagnosis will help to find a proper and thus more effective cure. If you are indeed suffering because of something you ingested, then the best thing for you to do would be to induce vomiting. But since you are already vomiting, you can actually try and drink lots of water to force old stuff out of your system. Adding 4 tablespoons of salt to a liter of water and drinking this at one go will help to lighten your system.
It is also possible that you are suffering from the stomach pain as well as vomiting due to some kind of injury you may have incurred. Sometimes it so happens that we hurt ourselves and momentarily think nothing of it, considering it to be minor. But some injuries while they may not be felt strongly, they can actually cause problems within the body. You need to try and remember if you have been injured by a blow of some sort to the stomach recently. If so, then this may well be the cause of your pain as well as vomiting. Applying hot compresses to your abdomen in this case would be able to help you out. It would soothe the injury and provide relief as well. If your injury is eased, it will also result in stopping the vomiting. But in any and all cases, your best bet is to have a proper and detailed examination. This will provide an accurate diagnosis as well as pave the way for a proper method of cure.
answered by G M