views:

202

answers:

0

Hi,

I'm wondering if anyone has any ideas as to how I can host the Silverlight ActiveX control in an MFC application. I have been able to find information on this online, but everything that I have found is related to ATL or C# and so far I have been unable to translate any of this into my MFC application:

Silverlight Alternative Hosting

Given the above links it seems as though this should be possible so I was wondering if anyone has done this before, or has any tips or tricks.

When I try to implement Microsoft's code in my MFC application it seems have issues when it hits:

_pAtlModule->Lock();

Within:

CComObject(void* = NULL)

Given that there is an ActiveX interface for Silverlight hosting it within a standard MFC CWnd should be possible, but I just can't get it to work.

If anyone can help me it would be much appreciated.

p.s. I would post more links to sample code but the spam prevention will not allow me to. I also wanted to use IXcpControl2 as a tag but I couldn't...maybe someone will be able to search for this...

Thanks