user1057993
user1057993

Reputation: 1

How to include a visual c++ .lib in Silverlight

It is possible to include a visual c++ 2005 .lib in a Silverlight project? I wrote an ActiveX that includes a library written in visual c++ 2005, and now I want create a Silverlight plugin for cross-browser portability.

Upvotes: 0

Views: 132

Answers (2)

TBohnen.jnr
TBohnen.jnr

Reputation: 5129

Unfortunately the only managed runtimes supported by silverlight is c# and Vb.net so no c++ :-(.

Silverlight will however support PInvoke in version 5 but there are some tricks to it that might not fit with your usecase. It does however require elevated trust.

Upvotes: 1

Martin Risell Lilja
Martin Risell Lilja

Reputation: 652

Probably not, Silverlight is very limited. But with the release of Silverlight 5 there seems to be support for PInvoke.

http://www.microsoft.com/silverlight/future/ Quite a bit down on the page.

Silverlight 5 is released later this year.

Upvotes: 0

Related Questions