yes I had this problem as a 14 year old, I was treated for ulcers for many years, until at the age of 32 they found the cause, same as yours, I had the gall bladdder removed wich was quite a serious op in those days, 1971, after that i was eating anthing and every thing and went from a 9 stone weakling to a 13 stone fit person in no time, nowadays it's a simple op as megan says, it's done by key hole surgery,
but after it is done, and i don't know if they tell you this nowadays, your system loses its ability to remove fat, thus increasing risk of high cholesterol, which was my downfall,
i ran high cholesterol until in 1985 i had a mssive heart attack, I was saved by a very clever cardiologist, and have had two bypass ops since,
don't let this put you off, just watch your diet afterwards.