Click here to Skip to main content
15,917,174 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionsrand in c or c++ doesn't really Generate Random Numbers ? Pin
snailflying2-Jul-07 21:45
snailflying2-Jul-07 21:45 
AnswerRe: srand in c or c++ doesn't really Generate Random Numbers ? Pin
Pete O'Hanlon3-Jul-07 1:57
mvePete O'Hanlon3-Jul-07 1:57 
GeneralRe: srand in c or c++ doesn't really Generate Random Numbers ? Pin
snailflying3-Jul-07 15:53
snailflying3-Jul-07 15:53 
QuestionInterior Pointer vs Handle Pin
iddqd5152-Jul-07 4:37
iddqd5152-Jul-07 4:37 
AnswerRe: Interior Pointer vs Handle Pin
led mike2-Jul-07 5:07
led mike2-Jul-07 5:07 
GeneralRe: Interior Pointer vs Handle Pin
iddqd5152-Jul-07 5:25
iddqd5152-Jul-07 5:25 
GeneralRe: Interior Pointer vs Handle Pin
George L. Jackson2-Jul-07 14:23
George L. Jackson2-Jul-07 14:23 
GeneralRe: Interior Pointer vs Handle Pin
iddqd5153-Jul-07 3:30
iddqd5153-Jul-07 3:30 
Ok, so for the most part an interior pointer and handle can point to the same types of things (i.e., a ref class, a ref class data member of another ref class, a value type data member of a ref class, etc). The difference is that when they are seemingly pointing at the same thing, the handle is pointing at the object's header information (and thus the whole object) while the interior pointer has the specific address of the object's data itself (which is what allows it to use pointer semantics). That makes sense I think. But you say interior pointers are only used in special situations. That seems to imply that replacing handles with interior pointers in some situations is not going to work (which I didn't think was the case). Is that right? And if so, could you give me a basic example of such a situation?

I'm still unclear on the implications of the quote from the Design Rationale doc. When it says handles can't point to interior data members of an object, that just means it can't point to the specific address of the data giving it pointer semantics? But it can still point to the whole object data member meaning they're perfectly useful for pointing to interior data members as long as you don't need pointer semantics and just want a tracking pointer. No?
GeneralRe: Interior Pointer vs Handle Pin
Geo Pa3-Jul-07 8:02
Geo Pa3-Jul-07 8:02 
GeneralRe: Interior Pointer vs Handle Pin
iddqd5153-Jul-07 8:35
iddqd5153-Jul-07 8:35 
QuestionDataSet Array Pin
MAW301-Jul-07 22:36
MAW301-Jul-07 22:36 
AnswerRe: DataSet Array Pin
George L. Jackson2-Jul-07 14:32
George L. Jackson2-Jul-07 14:32 
GeneralRe: DataSet Array Pin
MAW302-Jul-07 17:23
MAW302-Jul-07 17:23 
GeneralRe: DataSet Array Pin
George L. Jackson2-Jul-07 23:57
George L. Jackson2-Jul-07 23:57 
GeneralRe: DataSet Array Pin
MAW303-Jul-07 11:46
MAW303-Jul-07 11:46 
GeneralRe: DataSet Array Pin
George L. Jackson5-Jul-07 8:18
George L. Jackson5-Jul-07 8:18 
GeneralRe: DataSet Array Pin
MAW305-Jul-07 11:44
MAW305-Jul-07 11:44 
QuestionHow to get the seconds/milliseconds in DateTime? Pin
C#Coudou1-Jul-07 16:26
C#Coudou1-Jul-07 16:26 
AnswerRe: How to get the seconds/milliseconds in DateTime? Pin
Luc Pattyn2-Jul-07 5:28
sitebuilderLuc Pattyn2-Jul-07 5:28 
GeneralRe: How to get the seconds/milliseconds in DateTime? Pin
led mike2-Jul-07 5:39
led mike2-Jul-07 5:39 
GeneralRe: How to get the seconds/milliseconds in DateTime? Pin
Luc Pattyn2-Jul-07 6:05
sitebuilderLuc Pattyn2-Jul-07 6:05 
GeneralRe: How to get the seconds/milliseconds in DateTime? Pin
C#Coudou2-Jul-07 19:50
C#Coudou2-Jul-07 19:50 
Questionnetwork speed detection Pin
C#Coudou1-Jul-07 15:40
C#Coudou1-Jul-07 15:40 
AnswerRe: network speed detection Pin
Perspx2-Jul-07 11:24
Perspx2-Jul-07 11:24 
Questionhow to retrieve sub directorires under a specified directory Pin
cy163@hotmail.com29-Jun-07 23:24
cy163@hotmail.com29-Jun-07 23:24 

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.