Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
How to use com objects in web application?
In my web application i tried to use SpeechLib component. Web application does not support SpeechLib. But in windows application my coding is running. What shall i do to make my code run in web application?
Thanks in advance.
Posted
Updated 4-Mar-12 23:41pm
v2

You absolutely cannot use a COM component* client-side in a web application. If you think about how a web application works and the separation between server and browser, you'll understand why that is (your code is running on one machine, your markup and client-side script is running in a browser on a completely different one).

(*: Okay, it is possible if (i) you can guarantee your users will all be using IE, and (ii) you can guarantee they will have the component you want installed, and (iii) they put your site in Trusted Areas so it can access ActiveX controls. In a corporate LAN this may be possible. But then you might as well make them install your desktop app instead.)

If you actually want speech synthesis in a web client, you should use Silverlight and the speech synthesis in the .Net Framework, otherwise you will have to make your users install a COM component before they can use your site, and that will turn most of them away (particularly as it's a virus risk).
 
Share this answer
 
I'm not sure if this will help you since the article is a bit outdated: http://www.aspheute.com/english/20000828.asp[^]. This is a German site, but the article is in English.

Regards,

Manfred
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900