Skip to main content

Microsoft Silverlight

Answered Question If Silverlight supports COM objectsRSS Feed

(0)

Yunli Li
Yunli Li

Member

Member

1 points

3 Posts

If Silverlight supports COM objects

 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
sladapter

All-Star

All-Star

17439 points

3,172 Posts

Re: If Silverlight supports COM objects

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

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

Yunli Li
Yunli Li

Member

Member

1 points

3 Posts

Re: If Silverlight supports COM objects

 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?

sladapter
sladapter

All-Star

All-Star

17439 points

3,172 Posts

Answered Question

Re: If Silverlight supports COM objects

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?

 

 

 

 

 

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

Yunli Li
Yunli Li

Member

Member

1 points

3 Posts

Re: If Silverlight supports COM objects

 Thanks a lot. This makes me clear.

 I want to use Outlook Redemption  DLL in my web project.

sladapter
sladapter

All-Star

All-Star

17439 points

3,172 Posts

Answered Question

Re: If Silverlight supports COM objects

 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.

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities