RE: IRibbonExtensibility in unmanaged C++
- From: v-phuang@xxxxxxxxxxxxxxxxxxxx ("Peter Huang" [MSFT])
- Date: Mon, 27 Nov 2006 08:28:59 GMT
Hi Mark,
Currently the Office 2007 is just coming in RTM version so the document
about this is less.
But based on my test, from scratch, the ATL/C++ Wizard for Shared Addin
will not add the default implement for interface IRibbonExtensibility.
So we can just add the implementation to the default class e.g. CConnect.
In VS.NET 2005 IDE, please follow the steps below.
1. Switch to the Class View, right click on the CConnect class
2. Click Add/Implement Interface
3. Complete the Wizard to select the IRibbonExtensibility in the Office 12
Com Lib.
The result should be similar with below.
1. Interface implementaion: public
IDispatchImpl<Office::IRibbonExtensibility,
&__uuidof(Office::IRibbonExtensibility), &Office::LIBID_Office, /* wMajor =
*/ 2, /* wMinor = */ 4>,
2. The header file is similar with below.
#pragma warning( disable : 4278 )
#pragma warning( disable : 4146 )
//The following #import imports the IDTExtensibility2 interface based on
it's LIBID
#import "libid:AC0714F2-3D04-11D1-AE7D-00A0C90F26F4" version("1.0")
lcid("0") raw_interfaces_only named_guids
//The following #import imports the MSO interface based on it's LIBID
#import "libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52" version("2.4")
lcid("0") raw_interfaces_only named_guids auto_rename
#pragma warning( default : 4146 )
#pragma warning( default : 4278 )
If you still have any concern, please let me know.
Best regards,
Perter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Prev by Date: Develop a Word Viewer
- Next by Date: Outlook VSTO plug-in + Notes
- Previous by thread: Re: IRibbonExtensibility in unmanaged C++
- Next by thread: Re: Microsoft Office 12.0 Object Library missing
- Index(es):
Relevant Pages
|