Click here to Skip to main content
16,012,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 6:04
Matthew Faithfull11-Feb-08 6:04 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 16:29
Rajkumar R11-Feb-08 16:29 
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 
Rajkumar R wrote:
it only gives hint to the programmer to avoid mistakes in the coding


Exactly, which is why in this case void** is the best reminder to the programmer that they should not trust the returned value to be the type they expect because whatever type of pointer they pass in they cannot gaurentee it. They should check with QueryInterface. IUnknown** would be just as good given that COM ensure this much witha validly written server but then the client programmer might forget to check for NULL. Smile | :)

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

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 
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 

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.