Click here to Skip to main content
15,910,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltype safe issue Pin
George_George10-Feb-08 22:47
George_George10-Feb-08 22:47 
GeneralRe: type safe issue [modified] Pin
Rajkumar R11-Feb-08 0:06
Rajkumar R11-Feb-08 0:06 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 0:10
Matthew Faithfull11-Feb-08 0:10 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 0:39
Rajkumar R11-Feb-08 0:39 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 0:59
Matthew Faithfull11-Feb-08 0:59 
GeneralRe: type safe issue [modified] Pin
Rajkumar R11-Feb-08 1:33
Rajkumar R11-Feb-08 1:33 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 2:53
Matthew Faithfull11-Feb-08 2:53 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 3:17
Rajkumar R11-Feb-08 3:17 
Matthew Faithfull wrote:
I understand void pointers and the concept of type safety

ohh, my explaination is ok i think


Matthew Faithfull wrote:
in this case as long as the server obeys the rules


with the context of type safe, here who talks about the COM Server, COM Client Sample is given in george's post. And generally if no body makes mistake with data type handling, type system (int, float, ...) and a strongly typed languages is not required.

Matthew Faithfull wrote:
Or in English, an address is and address is an address as long as we all agree we're talking 32bit addresses.


yes, sure address is address, But calling interface function of IX with IX * with the address of IY * is not valid.


Matthew Faithfull wrote:
Your example may be incorrect sematically but it will compile and work there is no type safety issue.

to reduce semantically incorrect situation, type safety comes into picture. That is; it won't compile, if you pass IY * in place of IX *.
GeneralRe: type safe issue Pin
CPallini11-Feb-08 3:20
mveCPallini11-Feb-08 3:20 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 3:26
Rajkumar R11-Feb-08 3:26 
GeneralRe: type safe issue Pin
CPallini11-Feb-08 3:41
mveCPallini11-Feb-08 3:41 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 3:54
Rajkumar R11-Feb-08 3:54 
QuestionRe: type safe issue Pin
CPallini11-Feb-08 4:10
mveCPallini11-Feb-08 4:10 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 4:12
Rajkumar R11-Feb-08 4:12 
QuestionRe: type safe issue Pin
CPallini11-Feb-08 5:11
mveCPallini11-Feb-08 5:11 
GeneralRe: type safe issue [modified] Pin
Matthew Faithfull11-Feb-08 3:28
Matthew Faithfull11-Feb-08 3:28 
GeneralRe: type safe issue [modified] Pin
Rajkumar R11-Feb-08 3:52
Rajkumar R11-Feb-08 3:52 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 4:29
Matthew Faithfull11-Feb-08 4:29 
GeneralRe: type safe issue [modified] Pin
Rajkumar R11-Feb-08 4:34
Rajkumar R11-Feb-08 4:34 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 4:54
Matthew Faithfull11-Feb-08 4:54 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 5:04
Rajkumar R11-Feb-08 5:04 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 5:20
Matthew Faithfull11-Feb-08 5:20 
GeneralRe: type safe issue Pin
Rajkumar R11-Feb-08 5:25
Rajkumar R11-Feb-08 5:25 
GeneralRe: type safe issue Pin
led mike11-Feb-08 4:46
led mike11-Feb-08 4:46 
GeneralRe: type safe issue Pin
Matthew Faithfull11-Feb-08 4:58
Matthew Faithfull11-Feb-08 4:58 

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.