Click here to Skip to main content
15,914,014 members
Home / Discussions / COM
   

COM

 
GeneralRe: Global Interface Table issue Pin
geo_m14-Oct-04 1:46
geo_m14-Oct-04 1:46 
GeneralCOM Design Change Issue Pin
DeepakSharma14-Sep-04 1:54
DeepakSharma14-Sep-04 1:54 
GeneralActiveX problem Pin
archetype14-Sep-04 1:36
archetype14-Sep-04 1:36 
Generalplease help Pin
ThatsAlok14-Sep-04 1:02
ThatsAlok14-Sep-04 1:02 
QuestionDestructor in coclass? Pin
Anonymous13-Sep-04 23:49
Anonymous13-Sep-04 23:49 
AnswerRe: Destructor in coclass? Pin
thowra15-Sep-04 1:23
thowra15-Sep-04 1:23 
GeneralRe: the Invoke() method ? Pin
necroleak13-Sep-04 20:58
sussnecroleak13-Sep-04 20:58 
GeneralRe: the Invoke() method ? Pin
Jörgen Sigvardsson14-Sep-04 2:06
Jörgen Sigvardsson14-Sep-04 2:06 
Nooooooooooooo! You just committed a deadly COM sin. Never, ever, cast interfaces like that. Always use QueryInterface(). Do this instead:
pDisp->QueryInterface(IID_IResult, (void**)&res);


You can never know for sure what an interface pointer points to. It may point to a C++ object, but it may also point to a proxy. The object implementing IDispatch may not even implement IResult.

I repeat: always use QueryInterface().

--
Arigato gozaimashita!
GeneralRe: the Invoke() method ? Pin
necroleak14-Sep-04 20:25
sussnecroleak14-Sep-04 20:25 
GeneralRe: the Invoke() method ? Pin
necroleak14-Sep-04 21:19
sussnecroleak14-Sep-04 21:19 
Generalqweqe Pin
Kanagu_INDIAN13-Sep-04 18:55
Kanagu_INDIAN13-Sep-04 18:55 
GeneralRe: qweqe Pin
ThatsAlok3-Nov-04 17:49
ThatsAlok3-Nov-04 17:49 
Questionhow can i add the button? Pin
wywyongwei13-Sep-04 17:04
wywyongwei13-Sep-04 17:04 
AnswerRe: how can i add the button? Pin
ThatsAlok3-Nov-04 17:53
ThatsAlok3-Nov-04 17:53 
QuestionHowto make basic ActiveX component in c++ with...? Pin
H.F13-Sep-04 14:08
H.F13-Sep-04 14:08 
GeneralMFC + COM + ActiveX Controls... Pin
herbert_chow13-Sep-04 10:00
herbert_chow13-Sep-04 10:00 
GeneralActiveX download progress Pin
AssemblySoft13-Sep-04 7:03
AssemblySoft13-Sep-04 7:03 
GeneralOleview blocks ActiveDesktop object Pin
Ingo Uwe13-Sep-04 5:03
Ingo Uwe13-Sep-04 5:03 
GeneralLogging Component Pin
Anonymous13-Sep-04 1:11
Anonymous13-Sep-04 1:11 
GeneralActiveX control install Pin
AssemblySoft12-Sep-04 23:12
AssemblySoft12-Sep-04 23:12 
GeneralRe: ActiveX control install Pin
Balkrishna Talele16-Sep-04 18:58
Balkrishna Talele16-Sep-04 18:58 
GeneralRe: ActiveX control install Pin
AssemblySoft16-Sep-04 22:58
AssemblySoft16-Sep-04 22:58 
GeneralInstall an add-in Pin
Anonymous12-Sep-04 20:23
Anonymous12-Sep-04 20:23 
Questionthe Invoke() method ? Pin
necroleak12-Sep-04 4:07
sussnecroleak12-Sep-04 4:07 
AnswerRe: the Invoke() method ? Pin
necroleak12-Sep-04 4:09
sussnecroleak12-Sep-04 4:09 

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.