What I mean is, is there something like a
tex.dll that I could use to incorporate TeX's functionality inside a custom text editor?
For various reasons, and specific purposes, I am writing "the simplest possible" text editor for my own use, and it seems quite productive on paper. However, I will be using maths heavily and I don't want to reinvent the wheel of this enormity.
I am not sure how TeX could return a piece of formatted content but for maths formulas, which is what I really want, a jpeg should work fine for me.
If what I am looking for doesn't exist, what could be done to incorporate TeX generated formatted maths into my text editor?
FYI, I am developing in C++ on Windows 7 using plain Win32 API.
PS: I couldn't find appropriate tags and have used what seemed closest.