Click here to Skip to main content
16,006,442 members
Home / Discussions / COM
   

COM

 
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 
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


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 
GeneralRe: Exception Handling Error Pin
soup15-Jun-02 14:25
soup15-Jun-02 14:25 
GeneralRe: Exception Handling Error Pin
Tim Smith15-Jun-02 14:58
Tim Smith15-Jun-02 14:58 
QuestionHow to pass out an array from a com+ object? Pin
Lizp13-Jun-02 23:43
Lizp13-Jun-02 23:43 
AnswerRe: How to pass out an array from a com+ object? Pin
soptest14-Jun-02 9:40
soptest14-Jun-02 9:40 
GeneralRe: How to pass out an array from a com+ object? Pin
Lizp14-Jun-02 16:09
Lizp14-Jun-02 16:09 
GeneralPlease help (Events) Pin
Jason Troitsky (was Hattingh)13-Jun-02 21:30
Jason Troitsky (was Hattingh)13-Jun-02 21:30 
GeneralRe: Please help (Events) Pin
Amit Dey15-Jun-02 5:55
Amit Dey15-Jun-02 5:55 
GeneralRe: Please help (Events) Pin
Jason Troitsky (was Hattingh)15-Jun-02 6:19
Jason Troitsky (was Hattingh)15-Jun-02 6:19 
GeneralRe: Please help (Events) Pin
Amit Dey15-Jun-02 14:56
Amit Dey15-Jun-02 14:56 
GeneralRe: Please help (Events) Pin
Jason Troitsky (was Hattingh)15-Jun-02 22:28
Jason Troitsky (was Hattingh)15-Jun-02 22:28 
GeneralRe: Please help (Events) Pin
Amit Dey18-Jun-02 11:26
Amit Dey18-Jun-02 11:26 
GeneralRe: Please help (Events) Pin
Jason Troitsky (was Hattingh)18-Jun-02 11:42
Jason Troitsky (was Hattingh)18-Jun-02 11:42 
GeneralRe: Please help (Events) Pin
Amit Dey21-Jun-02 6:42
Amit Dey21-Jun-02 6:42 
GeneralRe: Please help (Events) Pin
Jason Troitsky (was Hattingh)27-Jun-02 0:09
Jason Troitsky (was Hattingh)27-Jun-02 0:09 
GeneralReminders in Outlook Pin
SHaroz13-Jun-02 6:12
SHaroz13-Jun-02 6:12 

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.