Posted By: adrian.h | Aug 28th, 2008 @ 1:56 PM
page 1 of 1
Comments: 2 | Views: 686
adrian.h
adrian.h
Would rather be camping or climbing!
Is it possible to make a COM component or ActiveX component using C# and .NET?  I'm trying to make something using WPF with a AX or COM interface so that it can be used in a older system.  However, the VS 2008 doesn't have a project template for this.  Unfortunately, I've only written AX components using the Wizard so this could be tricky.

Any help you can provide would be greatly appreciated.

Thanks,


Adrian
figuerres
figuerres
???
well if you open a project and go to the properties page, application tab, click on "Assembly Information..." there is a check box for "make com visible"
Not sure if you need to do other things after that...

PS: also in the help see "Packaging an Assembly for COM"
Yggdrasil
Yggdrasil
Pour me a cab, 'cause I can't drink no more.
Not that you can wrap .NET classes as COM, but you can't reliably wrap a .NET winforms control as an ActiveX. It's not a supported scenario. I've tried it (to embed in an Outlook form) and it seems to work, but random bits failed to work. Events, mostly, IIRC. Simple controls might work, though.
Here's some back-and-forth I had on www.outlookcode.com a couple of years ago, when I was trying to get it to work:
http://www.outlookcode.com/threads.aspx?forumid=5&messageid=13227
page 1 of 1
Comments: 2 | Views: 686
Microsoft Communities