Click here to Skip to main content
15,915,603 members
Home / Discussions / COM
   

COM

 
GeneralRe: VBScript and COM Pin
Vi224-May-02 3:35
Vi224-May-02 3:35 
GeneralRe: VBScript and COM Pin
soptest24-May-02 7:16
soptest24-May-02 7:16 
QuestionCringeworthy Cast in ATL?? Pin
20-May-02 23:23
suss20-May-02 23:23 
AnswerRe: Cringeworthy Cast in ATL?? Pin
Vivek Rajan21-May-02 6:50
Vivek Rajan21-May-02 6:50 
GeneralRe: Cringeworthy Cast in ATL?? Pin
soptest21-May-02 7:41
soptest21-May-02 7:41 
GeneralRe: Cringeworthy Cast in ATL?? Pin
Vivek Rajan21-May-02 9:08
Vivek Rajan21-May-02 9:08 
GeneralRe: Cringeworthy Cast in ATL?? Pin
soptest21-May-02 10:32
soptest21-May-02 10:32 
GeneralRe: Cringeworthy Cast in ATL?? Pin
Vivek Rajan21-May-02 10:53
Vivek Rajan21-May-02 10:53 
soptest wrote:

So the statement "_pi = pIn;" is 100% correct.


Sorry, that wont work.

If CoClass A implements 20 interfaces(10 interface via vtbl and 10 via tear off), you cannot get to the tear offs by assignment, you must use a QI. Same thing for aggregation.

In the world of COM, getting from one interface to another requires you to use QI. It is possible to ignore that rule and typecast, but that is asking for trouble and very poor COM practice.
GeneralRe: Cringeworthy Cast in ATL?? Pin
soptest21-May-02 12:10
soptest21-May-02 12:10 
GeneralRe: Cringeworthy Cast in ATL?? Pin
NotYourAverageGuy6-Jun-02 9:13
NotYourAverageGuy6-Jun-02 9:13 
GeneralRe: Cringeworthy Cast in ATL?? Pin
21-May-02 22:15
suss21-May-02 22:15 
GeneralRe: Cringeworthy Cast in ATL?? Pin
Vivek Rajan23-May-02 16:33
Vivek Rajan23-May-02 16:33 
GeneralCOM+ deployment help Pin
Annesa20-May-02 2:25
Annesa20-May-02 2:25 
GeneralRe: COM+ deployment help Pin
soptest20-May-02 9:40
soptest20-May-02 9:40 
Generaldrag and drop destination Pin
20-May-02 0:39
suss20-May-02 0:39 
GeneralRe: drag and drop destination Pin
soptest20-May-02 9:31
soptest20-May-02 9:31 
GeneralCannot expose interface Pin
Hans Ruck19-May-02 21:51
Hans Ruck19-May-02 21:51 
GeneralRe: Cannot expose interface Pin
soptest20-May-02 9:36
soptest20-May-02 9:36 
GeneralRe: Cannot expose interface Pin
Hans Ruck20-May-02 22:44
Hans Ruck20-May-02 22:44 
GeneralRe: Cannot expose interface Pin
Vi221-May-02 1:06
Vi221-May-02 1:06 
GeneralRe: Cannot expose interface Pin
Vi226-May-02 20:56
Vi226-May-02 20:56 
GeneralDlls in Internet Explorer Pin
Erasmop16-May-02 10:25
Erasmop16-May-02 10:25 
GeneralRe: Dlls in Internet Explorer Pin
Paul M Watt17-May-02 6:26
mentorPaul M Watt17-May-02 6:26 
GeneralRe: Dlls in Internet Explorer Pin
erasmo17-May-02 8:02
erasmo17-May-02 8:02 
GeneralRe: Dlls in Internet Explorer Pin
Paul M Watt17-May-02 8:51
mentorPaul M Watt17-May-02 8:51 

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.