Click here to Skip to main content
15,921,179 members
Home / Discussions / COM
   

COM

 
Generaladding a button to explorer toolbar Pin
rolati10-Aug-04 11:22
rolati10-Aug-04 11:22 
GeneralNon-exposed interfaces Pin
Antti Keskinen10-Aug-04 10:01
Antti Keskinen10-Aug-04 10:01 
GeneralRe: Non-exposed interfaces Pin
Milton Karimbekallil10-Aug-04 18:53
Milton Karimbekallil10-Aug-04 18:53 
GeneralRe: Non-exposed interfaces Pin
Antti Keskinen11-Aug-04 1:26
Antti Keskinen11-Aug-04 1:26 
GeneralRe: Non-exposed interfaces Pin
Milton Karimbekallil11-Aug-04 3:23
Milton Karimbekallil11-Aug-04 3:23 
GeneralRe: Non-exposed interfaces Pin
Antti Keskinen11-Aug-04 4:12
Antti Keskinen11-Aug-04 4:12 
GeneralRe: Non-exposed interfaces Pin
Antti Keskinen11-Aug-04 11:25
Antti Keskinen11-Aug-04 11:25 
GeneralRe: Non-exposed interfaces Pin
Milton Karimbekallil11-Aug-04 20:09
Milton Karimbekallil11-Aug-04 20:09 
its cooool man.. so u did it.

ur correct, noncreatable does not prevent from queryinterfacing an interface. More specifically noncreatable attribute is for a coclass, not for an interface. It just prevents that coclass from being instantiated. Also, if u r able to queryinterface that interface from the activex IUnknown, then that terminal cleint interface is not a separate coclass and not noncreatable attributed. I revoked the defenition i had given for a non exposed interface. I rephrase it as just another interfaec under the activex coclass, apart from the activex dispinterface and its event dispinterface.

What exactly it means is Scripting engins like Vbs need at least one IDsipatch derived interface. So normally COM servers that expect scripting engins as clients will always derive interfaces from IDispatch. But the limitation of COM is that a coclass can have only one IDispatch implimented interface.(Well, COM_INTERFACE_ENTRY2 is there to specify which Idispatch is 2 b considered) So if we need to have more than one interface in a coclass, then the remaining interfaces shud b iunknown derived (to make it compliant with vbs like apps). And As far as vb is concerned these IUnknown derived interfaces are "non exposed". That means vbs like clients can't get it directly, but they can queryinterface the IDispatch. If ur familiar with vb, u cud catch it easly. Or more clearly u can leave that term, it is specificaly for vb programmers we can say.

BTW GetControlUnknown is just an alternative to invoke mthds on an activex. As per the msdn sample the vb code gets the terminal cleint interface thru the objectmethod. if such a method is there in the activex, then ofcource that method will be there in the wrapper class also. coz, as u said wrapper class is just an idispatch wrapper for invoking methods on the activex. So it will contain all the methods in the activex. if u do a search for "object" in the wrapper class header file, it will be there. if it is not there, then that msdn sample code is wrong. i don't have that control installed on my mechine. generate the idl of that ocx and chk for "object" in the idl.

rgds...mil10
GeneralOPC - implement the custom-DLL Pin
ro_bürgel9-Aug-04 23:45
ro_bürgel9-Aug-04 23:45 
GeneralHelp: DCOM and local system account Pin
Storm749-Aug-04 20:53
Storm749-Aug-04 20:53 
GeneralRe: Help: DCOM and local system account Pin
Milton Karimbekallil9-Aug-04 22:55
Milton Karimbekallil9-Aug-04 22:55 
GeneralRe: Help: DCOM and local system account Pin
Storm7410-Aug-04 2:58
Storm7410-Aug-04 2:58 
GeneralBeginng Active-X. Need help. Pin
lovehis9-Aug-04 20:47
lovehis9-Aug-04 20:47 
GeneralRe: Beginng Active-X. Need help. Pin
Milton Karimbekallil9-Aug-04 23:10
Milton Karimbekallil9-Aug-04 23:10 
GeneralRe: Beginng Active-X. Need help. Pin
rgondzur12-Aug-04 9:36
rgondzur12-Aug-04 9:36 
GeneralInstantiating another CoClass from a CoClass method in the same component Pin
G. Raven9-Aug-04 7:44
G. Raven9-Aug-04 7:44 
GeneralRe: Instantiating another CoClass from a CoClass method in the same component Pin
Milton Karimbekallil9-Aug-04 19:08
Milton Karimbekallil9-Aug-04 19:08 
GeneralRe: Instantiating another CoClass from a CoClass method in the same component Pin
G. Raven12-Aug-04 1:16
G. Raven12-Aug-04 1:16 
General.net 2003 compilation error! Pin
kunja_chan6-Aug-04 2:40
kunja_chan6-Aug-04 2:40 
GeneralRe: .net 2003 compilation error! Pin
darkbyte18-Aug-04 13:46
darkbyte18-Aug-04 13:46 
GeneralUse to convert a spezific File to a Bitmap Pin
codefire5-Aug-04 0:49
codefire5-Aug-04 0:49 
Generalquestion Pin
ursus zeta9-Aug-04 11:01
ursus zeta9-Aug-04 11:01 
GeneralQueryInterface in CCmdTarget class in MFC Pin
johnny,Kim3-Aug-04 15:09
johnny,Kim3-Aug-04 15:09 
QuestionHow To run DCOM Component with Multiple Users Pin
Sushil Suri3-Aug-04 1:09
Sushil Suri3-Aug-04 1:09 
QuestionHow to make arguments as optional in DCOM method ? Pin
Anonymous3-Aug-04 0:48
Anonymous3-Aug-04 0:48 

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.