Click here to Skip to main content
15,888,315 members
Home / Discussions / COM
   

COM

 
GeneralRe: Aggregation in Inside Com Pin
jcyoon21-Jun-01 8:55
jcyoon21-Jun-01 8:55 
QuestionHow to add MFC support to ATL EXE Project? Pin
14-Jun-01 5:10
suss14-Jun-01 5:10 
QuestionLimitation of .tlb import in VC++? Pin
14-Jun-01 4:03
suss14-Jun-01 4:03 
AnswerRe: Limitation of .tlb import in VC++? Pin
J Patel21-Jun-01 11:38
J Patel21-Jun-01 11:38 
Questionwhat does ESP means? Pin
14-Jun-01 3:00
suss14-Jun-01 3:00 
AnswerRe: what does ESP means? Pin
Kevin Perry (msft)19-Jun-01 19:06
Kevin Perry (msft)19-Jun-01 19:06 
Generalexception handling framework Pin
praveen prabhakar13-Jun-01 14:05
praveen prabhakar13-Jun-01 14:05 
General[dual] (un)happiness Pin
13-Jun-01 2:01
suss13-Jun-01 2:01 
Hello all,

I’ve been trying to get my mind around the following issue in COM: The use of the [dual] parameter when defining interfaces. I’ve read all (....well a lot of) the text on it, but haven’t really found my answer.

Let me tell you what *I* understand (correct me if I’m wrong):

1. dispinterfaces are the same as interfaces inherited from IDispatch.
2. Interfaces derived from IDispatch use Invoke to call methods, while IUnknown derived interfaces use VTables.
3. Using [dual] makes an interface able to use both VTable and Invoke.

....so here comes the problem.

If I define an interface (IDispatch derived and NOT using [dual]) and defined it as a [source] in a coclass then VB is happy to see the events. Yippie! If I use the [dual] parameter on that interface then VB does not like me and won’t see the events?

So my first question is WHY DOES VB not see the events if it is marked as [dual]? Secondly WHY would one ever really use the [dual] parameter….I don’t see where it is useful?

Anyway….any (helpful) comments would be appreciated!

D.
Confused | :confused:
GeneralRe: [dual] (un)happiness Pin
3-Jul-01 5:22
suss3-Jul-01 5:22 
GeneralRich Edit Controls - Embedding Files Pin
Steve Thresher12-Jun-01 1:51
Steve Thresher12-Jun-01 1:51 
GeneralUnable to locate assembly error Pin
11-Jun-01 22:31
suss11-Jun-01 22:31 
GeneralDefault parameter values Pin
Christian Dahl10-Jun-01 23:29
Christian Dahl10-Jun-01 23:29 
GeneralRe: Default parameter values Pin
Ulf Öhlén10-Jun-01 23:47
Ulf Öhlén10-Jun-01 23:47 
GeneralConfiguring a COM+ Server Application as an NT Service Pin
12ways10-Jun-01 22:18
12ways10-Jun-01 22:18 
QuestionHow to get the com-GUID directly from its dll or exe file Pin
9-Jun-01 19:02
suss9-Jun-01 19:02 
AnswerRe: How to get the com-GUID directly from its dll or exe file Pin
MikeG18-Jun-01 6:17
MikeG18-Jun-01 6:17 
QuestionHow to get the com-GUID directly from its dll or exe file Pin
9-Jun-01 18:57
suss9-Jun-01 18:57 
QuestionHow to get the com-GUID directly from its dll or exe file Pin
9-Jun-01 18:57
suss9-Jun-01 18:57 
GeneralAutomatic help creation for a COM/ActiveX type library Pin
8-Jun-01 5:27
suss8-Jun-01 5:27 
GeneralI am new Pin
8-Jun-01 0:26
suss8-Jun-01 0:26 
GeneralDetect running servers Pin
Brian van der Beek8-Jun-01 0:00
Brian van der Beek8-Jun-01 0:00 
GeneralATL Dialogs Pin
AndyC7-Jun-01 8:56
AndyC7-Jun-01 8:56 
GeneralRe: ATL Dialogs Pin
Michael P Butler7-Jun-01 22:29
Michael P Butler7-Jun-01 22:29 
GeneralRe: ATL Dialogs Pin
Amit Dey8-Jun-01 2:42
Amit Dey8-Jun-01 2:42 
GeneralVisual C++ COM Component in Vb/ASP Pin
Krush7-Jun-01 7:35
Krush7-Jun-01 7:35 

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.