Skip to main content
Home Forums Silverlight Programming Programming with .NET - General If Silverlight supports COM objects
5 replies. Latest Post by sladapter on September 5, 2008.
(0)
Yunli Li
Member
1 points
3 Posts
08-31-2008 8:09 PM |
Hi Silverlight experts,
I am a newbie to Silverlight, I don't know SIlverlight can support COM objects or not? If yes, How do I add the reference to these old style DLL into the Silverlight project?
Thanks,
Liy
sladapter
All-Star
17439 points
3,172 Posts
08-31-2008 8:36 PM |
The answer is NO.
If you want to call ActiveX control from Silverlight, you can use JavaScript bridge.
See this thread for more discussion:
http://silverlight.net/forums/p/23453/83413.aspx#83413
08-31-2008 8:44 PM |
The WPF still can support COM, silverlight is the web version of WPF, isn't it? So I think it should support COM somehow. By the way, any official document says it can't support COM at all?
08-31-2008 9:58 PM |
Yes, Silverlight is a subset of WPF running on browser. For one thing, Silverlight is cross platform, WPF is not. WPF is a Windows program, it can access any resource/process on the same machine. Silverlight is Web technology, it has security limitations. Silverlight is running in sandbox, so for security reason Silverlight can not start any process running outside the sandbox on the client machine.
Even WPF support COM, Silverlight does not. There are lot of features that supported in WPF, but not in Silverlight.
In Silverlight project you can only reference other DLLs alse build on the Silverlight Framework, not any dlls can be referenced. You can not add reference of regular .Net dll nor old COM dll.
What kind of COM object you want to call from Silverlight? Is it an ActiveX control running on the same page?
08-31-2008 10:10 PM |
Thanks a lot. This makes me clear.
I want to use Outlook Redemption DLL in my web project.
09-05-2008 9:30 AM |
If you want to call that COM object in your Server side code (such as your Web Service code), yes, you can do it as you normally do.