How can I link my c++ program with html/javascript code?
My c++ program should have browser interface....Is cgi the only option.I dont want webserver and cgi...What else can I do?

How can I link my c++ program with html/javascript code?

I don't think that's possible... then again, I could be wrong. In any case, I know it's possible to do this in DHTML.

Other ways to call C++? I think there's other ways, but personally, I think the best way you can do this is to convert your C++ code to PHP, as PHP is basically a demented version of C++, and then you can call your PHP scripts quite easily within regular HTML.

Hope this helps