Click here to Skip to main content
15,913,709 members
Home / Discussions / COM
   

COM

 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
EliottA7-May-09 10:11
EliottA7-May-09 10:11 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
Klempie7-May-09 10:28
Klempie7-May-09 10:28 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
EliottA7-May-09 10:35
EliottA7-May-09 10:35 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
Klempie7-May-09 10:44
Klempie7-May-09 10:44 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
EliottA7-May-09 10:48
EliottA7-May-09 10:48 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
Anthony Mushrow7-May-09 13:53
professionalAnthony Mushrow7-May-09 13:53 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
Klempie7-May-09 19:45
Klempie7-May-09 19:45 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
bulg8-May-09 6:01
bulg8-May-09 6:01 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
EliottA8-May-09 7:29
EliottA8-May-09 7:29 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? [modified] Pin
bulg8-May-09 10:57
bulg8-May-09 10:57 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
bulg8-May-09 6:12
bulg8-May-09 6:12 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? Pin
bulg8-May-09 6:00
bulg8-May-09 6:00 
GeneralRe: Has Microsoft exposed Direct3D 10 on COM? PinPopular
Jörgen Sigvardsson7-May-09 11:27
Jörgen Sigvardsson7-May-09 11:27 
QuestionHow to capture Close event of Winword Application using AddIn? Pin
Supra25-May-09 23:32
Supra25-May-09 23:32 
Questionhow to remote access to ad Pin
ljz8886665555-May-09 22:53
ljz8886665555-May-09 22:53 
AnswerRe: how to remote access to ad Pin
ljz8886665555-May-09 23:06
ljz8886665555-May-09 23:06 
QuestionHow to retrive the Properties of a Active X control. Pin
vibindia5-May-09 16:51
vibindia5-May-09 16:51 
QuestionWMI Win32_Service Pin
Jack Rong4-May-09 5:23
Jack Rong4-May-09 5:23 
AnswerCross posting pile of garbage Pin
led mike4-May-09 9:24
led mike4-May-09 9:24 
GeneralRe: Cross posting pile of garbage Pin
Jack Rong5-May-09 2:16
Jack Rong5-May-09 2:16 
GeneralRe: Cross posting pile of garbage Pin
led mike6-May-09 6:25
led mike6-May-09 6:25 
Questionoleview could able create instance but cocreateinstance fails. Pin
rsandeepu3-May-09 19:02
rsandeepu3-May-09 19:02 
Questionprinter on distributed system Pin
Snappy Wing3-May-09 4:33
Snappy Wing3-May-09 4:33 
Questiondynamic_cast of objects inherit from IUnknow Pin
Jack200951-May-09 18:23
Jack200951-May-09 18:23 
#include "stdafx.h"

class A
{
};

class B
{
};

int _tmain(int argc, _TCHAR* argv[])
{
A* pA = NULL;
B* pB = dynamic_cast<B*>(pA);//error C2683: 'dynamic_cast' : 'A' is not a polymorphic type. This is no doubt.

return 0;
}


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
But if A inherits from IUnknow, the dynamic_cast compile successfully, why?

#include "stdafx.h"
#include <ObjBase.h>

class A : IUnknown
{
};

class B
{
};

int _tmain(int argc, _TCHAR* argv[])
{
A* pA = NULL;
B* pB = dynamic_cast<B*>(pA);//Why compile successfully here?

return 0;
}
AnswerRe: dynamic_cast of objects inherit from IUnknow Pin
Vi23-May-09 17:36
Vi23-May-09 17:36 

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.