I want to create an exe file which can directly be run in web-browsers. To achieve this, I have developed a c exe which outputs html code. If i run it in the browser, it gives junk output. If i run it in dos mode, it gives proper html tags as output. Why is this happening? How do we over come this?