I need build-in math editor for own program.

Hi All!
I'm looking for an editor of math expressions(formulas) which could be
built as a unit into own program(source: Borland C, C++, Pascal).
Any suggestions and units are appreciated.
                Thank you.