tags:

views:

621

answers:

1

Without going into why I need OLE.. I need to embed a managed C++ custom control into MS Word 2007 (2003 also would be nice).

So the question is How do I make this managed (.net 3.5) control OLE compliant ?

It seems that I need to do something akin to implementing an interface. But an up-to-date tutorial is something that is proving difficult to find.

I've read the wikipedia article on OLE. All the information that I could google out is ancient (1994) and/or VB centric (4.0-6.0). Anything that makes sense to current times... links/books please post.

Thanks for reading..

A: 

Andrew Whitechapel writes about managed controls as ActiveX controls in Office documents. You can read his article here: http://blogs.msdn.com/andreww/archive/2008/11/24/using-managed-controls-as-activex-controls.aspx.

Update: See also this related question.

0xA3
But he says 'it doesnt work that well with word.' Also 'dont try this in production code'. Both needed by me :) Thanks anyways
Gishu