Click here to Skip to main content
15,915,873 members
Home / Discussions / COM
   

COM

 
GeneralThis one is easy! Pin
Al_Pennyworth21-Jun-02 8:24
Al_Pennyworth21-Jun-02 8:24 
GeneralDifferent Kind of problem Pin
Al_Pennyworth20-Jun-02 8:46
Al_Pennyworth20-Jun-02 8:46 
QuestionAny Idea? Pin
Al_Pennyworth20-Jun-02 4:27
Al_Pennyworth20-Jun-02 4:27 
AnswerRe: Any Idea? Pin
Rama Krishna Vavilala20-Jun-02 8:02
Rama Krishna Vavilala20-Jun-02 8:02 
GeneralRe: Any Idea? Pin
Al_Pennyworth24-Jun-02 7:05
Al_Pennyworth24-Jun-02 7:05 
AnswerRe: Any Idea? Pin
Amit Dey1-Jul-02 3:35
Amit Dey1-Jul-02 3:35 
GeneralRe: Any Idea? Pin
1-Jul-02 7:31
suss1-Jul-02 7:31 
AnswerRe: Any Idea? Pin
Amit Dey27-Aug-02 13:49
Amit Dey27-Aug-02 13:49 
Yeah, I came across a similar duplicate IID problem while building Word addin. I know how frustrating this is!! Big Grin | :-D Smile | :)

If you already haven't figured out, the solution is to move the #import statement for importing Word typelib(the 2nd #import) to your addins .h file.

e.g. I put the following #imports in my Addin.h file. so it looks like :

#ifndef __ADDIN_H_
#define __ADDIN_H_

#include "resource.h" // main symbols

#import "D:\Program Files\Common Files\designer\MSADDNDR.TLB" raw_interfaces_only, raw_native_types, no_namespace, named_guids

#import "D:\Program Files\Microsoft Office\Office\MSWORD9.olb" rename_namespace("MSWORD"), rename("ExitWindows","WordExitWindows"), named_guids, raw_interfaces_only
using namespace MSWORD;


and then rebuild.Smile | :)

HTH,


'My capacity for happiness', he added, 'you could fit into a matchbox without taking out the matches first'.

- Marvin, the robot.

Amit Dey

sonork:
100:18407
msn: visualcdev


GeneralRe: Any Idea? Pin
Anonymous28-Aug-02 3:04
Anonymous28-Aug-02 3:04 
GeneralExcel events inside a DLL Pin
Zizilamoroso19-Jun-02 23:48
Zizilamoroso19-Jun-02 23:48 
GeneralRe: Excel events inside a DLL Pin
soptest20-Jun-02 7:54
soptest20-Jun-02 7:54 
GeneralInterlocked increment failed Pin
sefip19-Jun-02 20:56
sefip19-Jun-02 20:56 
GeneralRe: Interlocked increment failed Pin
Dudi Avramov20-Jun-02 2:05
Dudi Avramov20-Jun-02 2:05 
Generallock-up catching excel events Pin
Zizilamoroso18-Jun-02 23:54
Zizilamoroso18-Jun-02 23:54 
GeneralRe: lock-up catching excel events Pin
Zizilamoroso19-Jun-02 1:20
Zizilamoroso19-Jun-02 1:20 
GeneralRe: lock-up catching excel events Pin
soptest20-Jun-02 7:52
soptest20-Jun-02 7:52 
GeneralLegacy COM calling .NET DLL: LPArray problem Pin
bad_english18-Jun-02 21:01
bad_english18-Jun-02 21:01 
GeneralCatching Events Pin
18-Jun-02 4:48
suss18-Jun-02 4:48 
GeneralRe: Catching Events Pin
Amit Dey18-Jun-02 11:14
Amit Dey18-Jun-02 11:14 
GeneralRe: Catching Events Pin
19-Jun-02 4:37
suss19-Jun-02 4:37 
GeneralRe: Catching Events Pin
20-Jun-02 6:32
suss20-Jun-02 6:32 
GeneralRe: Catching Events Pin
Anonymous27-Aug-02 9:15
Anonymous27-Aug-02 9:15 
GeneralRe: Catching Events Pin
Amit Dey27-Aug-02 13:52
Amit Dey27-Aug-02 13:52 
GeneralException Handling Error Pin
soup15-Jun-02 6:00
soup15-Jun-02 6:00 
GeneralRe: Exception Handling Error Pin
Tim Smith15-Jun-02 6:20
Tim Smith15-Jun-02 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.