Click here to Skip to main content
15,923,006 members
Home / Discussions / COM
   

COM

 
GeneralVC++ Automation Word 2000 Error : Unable to Disable "Cntrl+C" Pin
vishalmore7-Jul-04 23:35
vishalmore7-Jul-04 23:35 
GeneralActive Document - pls help Pin
Carlos Sánchez García7-Jul-04 21:26
Carlos Sánchez García7-Jul-04 21:26 
GeneralCOM object and ASP Pin
asif m@hmood7-Jul-04 6:04
asif m@hmood7-Jul-04 6:04 
GeneralRe: COM object and ASP Pin
palbano7-Jul-04 11:26
palbano7-Jul-04 11:26 
GeneralRe: COM object and ASP Pin
Mike Dimmick7-Jul-04 11:26
Mike Dimmick7-Jul-04 11:26 
GeneralRe: COM object and ASP Pin
palbano7-Jul-04 11:33
palbano7-Jul-04 11:33 
Questionquery interface in VB? Pin
kunja_chan6-Jul-04 11:02
kunja_chan6-Jul-04 11:02 
AnswerRe: query interface in VB? Pin
darkbyte7-Jul-04 14:00
darkbyte7-Jul-04 14:00 
LOL,

This comes along with a question of mine that probably can answer your question Smile | :)

If i'm not crazy, it should be possible to query for interfaces using CType(), and my question is related to CType. Smile | :)

Say i have a COM object with multiple inherited interfaces like:

interface IFoo : IDispach
{
   .. blah ...
}

interface IOtherFoo : IFoo
{
   .. blah ...
}


Now, in some way i have a method somewhere that returns an IFoo object:

[id(4), propget] Foo([out, retval] IFoo ** rvIFoo);


now, in VB i do Set MyObj = someobject.Foo. Then later i do Set MyObj2 = CType(MyObj, IOtherFoo). Will MyObj2 be the IOtherFoo interface of the same instance as MyObj ?

PS: From searches i've done, CType() seems to be only valid in VB.NET.
Is there an equivalent to CType() in VB 6.0 ?
GeneralRe: query interface in VB? Pin
Milton Karimbekallil13-Jul-04 21:31
Milton Karimbekallil13-Jul-04 21:31 
GeneralRe: query interface in VB? Pin
darkbyte14-Jul-04 13:52
darkbyte14-Jul-04 13:52 
GeneralRe: query interface in VB? Pin
Milton Karimbekallil15-Jul-04 2:08
Milton Karimbekallil15-Jul-04 2:08 
GeneralRe: query interface in VB? Pin
darkbyte17-Jul-04 4:44
darkbyte17-Jul-04 4:44 
GeneralRe: query interface in VB? Pin
Milton Karimbekallil18-Jul-04 17:53
Milton Karimbekallil18-Jul-04 17:53 
GeneralRe: query interface in VB? Pin
darkbyte19-Jul-04 0:44
darkbyte19-Jul-04 0:44 
GeneralRe: query interface in VB? Pin
Milton Karimbekallil19-Jul-04 19:44
Milton Karimbekallil19-Jul-04 19:44 
GeneralNeed to connect to correct instance of application Pin
Sara Burns5-Jul-04 19:44
Sara Burns5-Jul-04 19:44 
GeneralRe: Need to connect to correct instance of application Pin
darkbyte17-Jul-04 4:48
darkbyte17-Jul-04 4:48 
GeneralRe: Need to connect to correct instance of application Pin
darkbyte30-Jul-04 14:39
darkbyte30-Jul-04 14:39 
GeneralGetting Number of Sub-storage count from a structured storage file Pin
bhave_subodh2-Jul-04 6:39
bhave_subodh2-Jul-04 6:39 
GeneralRe: Getting Number of Sub-storage count from a structured storage file Pin
darkbyte6-Jul-04 1:36
darkbyte6-Jul-04 1:36 
GeneralIOleObject Advise Pin
Anonymous2-Jul-04 6:24
Anonymous2-Jul-04 6:24 
GeneralMakiing Plugin for Windows Media Encoder Pin
Asim Saleh1-Jul-04 7:04
Asim Saleh1-Jul-04 7:04 
GeneralGot “Type mismatch” box when running a default Add-n project I VB 6.0 Pin
anderslundsgard1-Jul-04 4:46
anderslundsgard1-Jul-04 4:46 
QuestionCreating a simple add-in for e.g. MS Outlook… ? Pin
anderslundsgard1-Jul-04 3:00
anderslundsgard1-Jul-04 3:00 
AnswerRe: Creating a simple add-in for e.g. MS Outlook… ? Pin
Jörgen Sigvardsson1-Jul-04 11:35
Jörgen Sigvardsson1-Jul-04 11: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.