Click here to Skip to main content
15,899,124 members
Home / Discussions / COM
   

COM

 
GeneralAsync Queries + ADO Pin
Mukesh27-Jun-01 19:46
Mukesh27-Jun-01 19:46 
GeneralClass address with & Pin
27-Jun-01 16:59
suss27-Jun-01 16:59 
GeneralAdding a User Control Pin
27-Jun-01 3:30
suss27-Jun-01 3:30 
GeneralRe: Adding a User Control Pin
10-Jul-01 3:41
suss10-Jul-01 3:41 
GeneralImage previews in Windows 2000 Pin
Frank Oquendo25-Jun-01 18:17
Frank Oquendo25-Jun-01 18:17 
QuestionSetting up an ImageList at runtime? Pin
Jack Mott25-Jun-01 5:25
Jack Mott25-Jun-01 5:25 
QuestionAdding another IDispatch derived interface? Pin
Dave_25-Jun-01 4:31
Dave_25-Jun-01 4:31 
AnswerRe: Adding another IDispatch derived interface? Pin
Alwin7530-Oct-01 11:14
Alwin7530-Oct-01 11:14 
Hi Dave,

You are deriving a new class from two other classes that both
implement IDispatch, therefore the compiler does not know which
one to use.

You can select which one should be implemented in your new class
in your COM_MAP by using COM_INTERFACE_ENTRY2 instead of COM_INTERFACE_ENTRY:

COM_INTERFACE_ENTRY(IObj1)
COM_INTERFACE_ENTRY2(IDispatch, IObj2)
//COM_INTERFACE_ENTRY(IDispatch) // Removed

See the COM_INTERFACE_ENTRY2 docs.

Hope this helps (and it is the correct answer Smile | :)


Alwin Beukers
GeneralReturning IPictureDisp in ATL Pin
23-Jun-01 22:14
suss23-Jun-01 22:14 
GeneralRe: Returning IPictureDisp in ATL Pin
Bjarke Viksoe24-Jun-01 3:03
Bjarke Viksoe24-Jun-01 3:03 
GeneralMFC ActiveX Pin
Merl'23-Jun-01 1:28
Merl'23-Jun-01 1:28 
GeneralError generating type library Pin
Yamuna22-Jun-01 22:47
Yamuna22-Jun-01 22:47 
QuestionHow can i use the UDP on the web ?? Pin
khamis22-Jun-01 7:56
khamis22-Jun-01 7:56 
GeneralDCOM Pin
22-Jun-01 1:45
suss22-Jun-01 1:45 
GeneralReleated Problem Pin
21-Jun-01 3:58
suss21-Jun-01 3:58 
Questionhow to download & install OCX with higher ver number Pin
Bartek21-Jun-01 2:43
Bartek21-Jun-01 2:43 
GeneralPassing IDispatch pointer to C++ Pin
20-Jun-01 11:42
suss20-Jun-01 11:42 
GeneralRe: Passing IDispatch pointer to C++ Pin
20-Jun-01 16:02
suss20-Jun-01 16:02 
GeneralRe: Passing IDispatch pointer to C++ Pin
Holger Persch20-Jun-01 19:51
Holger Persch20-Jun-01 19:51 
GeneralRe: Passing IDispatch pointer to C++ Pin
21-Jun-01 4:07
suss21-Jun-01 4:07 
Generalusing com objects Pin
parag20-Jun-01 5:02
parag20-Jun-01 5:02 
Questionloading activex? Pin
19-Jun-01 22:28
suss19-Jun-01 22:28 
AnswerRe: loading activex? Pin
Amit Dey21-Jun-01 15:13
Amit Dey21-Jun-01 15:13 
QuestionHow can I access the collection of properties Pin
19-Jun-01 4:49
suss19-Jun-01 4:49 
AnswerRe: How can I access the collection of properties Pin
JoeBloggs22-Jul-01 1:35
JoeBloggs22-Jul-01 1: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.