Click here to Skip to main content
15,913,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: type safe issue Pin
George_George12-Feb-08 2:21
George_George12-Feb-08 2:21 
GeneralRe: type safe issue Pin
Rajkumar R12-Feb-08 2:44
Rajkumar R12-Feb-08 2:44 
GeneralRe: type safe issue Pin
George_George12-Feb-08 2:57
George_George12-Feb-08 2:57 
GeneralRe: type safe issue Pin
Matthew Faithfull12-Feb-08 2:27
Matthew Faithfull12-Feb-08 2:27 
GeneralRe: type safe issue Pin
Rajkumar R12-Feb-08 2:43
Rajkumar R12-Feb-08 2:43 
GeneralRe: type safe issue Pin
Matthew Faithfull12-Feb-08 2:55
Matthew Faithfull12-Feb-08 2:55 
GeneralRe: type safe issue Pin
George_George12-Feb-08 3:08
George_George12-Feb-08 3:08 
GeneralRe: type safe issue Pin
Matthew Faithfull12-Feb-08 3:32
Matthew Faithfull12-Feb-08 3:32 
I didn't use the term 'runtime type safe' but if I had it would mean that although the type pointed to by a pointer returned from outside your code (like the result placed in ppv by CoCreateInstance) cannot be gaurenteed when your code is compiled because it cannot be determined, it can be gaurenteed by the external code itself, in this case the COM runtime or the external COM server. Such a gaurentee could be called 'runtime type safety'.
It is in this sense that COM is typesafe, all interfaces are derived from IUnknown which is always implemented so any interface pointers arriving in your process from outside can always be treated safely as IUnknown pointers.
Because this is all that can be gaurenteed this is also all that should be assumed, that is a very important rule of writing good code. Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: type safe issue Pin
George_George12-Feb-08 18:00
George_George12-Feb-08 18:00 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 5:06
Rajkumar R11-Feb-08 5:06 
GeneralRe: type safe issue Pin
George_George12-Feb-08 2:08
George_George12-Feb-08 2:08 
GeneralRe: type safe issue Pin
George_George12-Feb-08 1:22
George_George12-Feb-08 1:22 
GeneralRe: type safe issue Pin
Rajkumar R12-Feb-08 1:45
Rajkumar R12-Feb-08 1:45 
GeneralRe: type safe issue Pin
George_George12-Feb-08 1:52
George_George12-Feb-08 1:52 
GeneralRe: type safe issue Pin
Rajkumar R12-Feb-08 2:58
Rajkumar R12-Feb-08 2:58 
GeneralRe: type safe issue Pin
George_George12-Feb-08 3:09
George_George12-Feb-08 3:09 
GeneralRe: type safe issue Pin
George_George12-Feb-08 1:20
George_George12-Feb-08 1:20 
GeneralRe: type safe issue Pin
Matthew Faithfull12-Feb-08 2:18
Matthew Faithfull12-Feb-08 2:18 
GeneralRe: type safe issue Pin
George_George12-Feb-08 2:23
George_George12-Feb-08 2:23 
QuestionHow to make a control transparent in a dialog Pin
swarup10-Feb-08 22:03
swarup10-Feb-08 22:03 
AnswerRe: How to make a control transparent in a dialog Pin
Hamid_RT10-Feb-08 22:13
Hamid_RT10-Feb-08 22:13 
GeneralText Draw problem with Print Preview Pin
Anik3310-Feb-08 21:33
Anik3310-Feb-08 21:33 
GeneralRe: Text Draw problem with Print Preview Pin
Hamid_RT10-Feb-08 22:05
Hamid_RT10-Feb-08 22:05 
GeneralRe: Text Draw problem with Print Preview Pin
Anik3310-Feb-08 23:04
Anik3310-Feb-08 23:04 
GeneralRe: Text Draw problem with Print Preview Pin
Roger Allen15-Feb-08 1:10
Roger Allen15-Feb-08 1:10 

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.