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

Managed C++/CLI

 
NewsRe: C++ Pointer To Pointer Pin
prasad_som19-Sep-05 19:03
prasad_som19-Sep-05 19:03 
AnswerRe: C++ Pointer To Pointer Pin
VaporTrace19-Sep-05 20:09
VaporTrace19-Sep-05 20:09 
AnswerRe: C++ Pointer To Pointer Pin
John R. Shaw21-Sep-05 22:47
John R. Shaw21-Sep-05 22:47 
QuestionHow does this work? Pin
LiquidE_SA19-Sep-05 3:15
LiquidE_SA19-Sep-05 3:15 
AnswerRe: How does this work? Pin
RichardS19-Sep-05 5:56
RichardS19-Sep-05 5:56 
GeneralRe: How does this work? Pin
VaporTrace19-Sep-05 6:30
VaporTrace19-Sep-05 6:30 
GeneralRe: How does this work? Pin
RichardS19-Sep-05 8:01
RichardS19-Sep-05 8:01 
GeneralRe: How does this work? Pin
VaporTrace19-Sep-05 13:24
VaporTrace19-Sep-05 13:24 
Duh yup,
When you simplify, it's painfully clear as A* = A* to new object as:
NonLeafTrieNode **ptrs = (NonLeafTrieNode*) new object; I think you know what I'm trying to say rather that ptrs[x].

That this pointer -> just kept saying "I'm in a mystery object" which doesn't matter.
Err. Hate it when that happens. D'Oh! | :doh:

-- modified at 1:50 Tuesday 20th September, 2005

Suspicious | :suss:
Ya know this dumb thing kept buggin me so I went to my compiler and guess what? It worked! But it still kept bugging me since this is not a normal thing I would try so I thought outside of the obvious why havn't I tried this just for the stupidity of it.
Then I thought.
Cool | :cool:

class A{};

class B{
public:
int j;
};

int main (int argc, char* argv[]){
A* newptr = (A*) new B;
newptr->j=5;
return 0;
}

Poke tongue | ;-P

Ya, I was a bit suprised when it let me do the initial
A* newptr = (A*) new B;
because it just doesn't feel right.
Guess I'm too methodical.
GeneralRe: How does this work? Pin
RichardS20-Sep-05 5:36
RichardS20-Sep-05 5:36 
AnswerRe: How does this work? Pin
VaporTrace19-Sep-05 6:18
VaporTrace19-Sep-05 6:18 
GeneralRe: How does this work? Pin
Johann Gerell20-Sep-05 19:55
Johann Gerell20-Sep-05 19:55 
GeneralRe: How does this work? Pin
RichardS21-Sep-05 6:14
RichardS21-Sep-05 6:14 
GeneralRe: How does this work? Pin
Johann Gerell24-Sep-05 11:18
Johann Gerell24-Sep-05 11:18 
QuestionWininet : Cache problem Pin
JabraJabra18-Sep-05 20:50
JabraJabra18-Sep-05 20:50 
AnswerRe: Wininet : Cache problem Pin
RichardS19-Sep-05 6:13
RichardS19-Sep-05 6:13 
QuestionClass Family Tree? Pin
VaporTrace18-Sep-05 10:20
VaporTrace18-Sep-05 10:20 
QuestionDunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 1:17
LiquidE_SA18-Sep-05 1:17 
AnswerRe: Dunamic type converstion. Please help? Pin
VaporTrace18-Sep-05 10:52
VaporTrace18-Sep-05 10:52 
GeneralRe: Dunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 11:15
LiquidE_SA18-Sep-05 11:15 
GeneralRe: Dunamic type converstion. Please help? Pin
VaporTrace18-Sep-05 12:19
VaporTrace18-Sep-05 12:19 
GeneralRe: Dunamic type converstion. Please help? Pin
RichardS18-Sep-05 13:47
RichardS18-Sep-05 13:47 
GeneralRe: Dunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 14:01
LiquidE_SA18-Sep-05 14:01 
GeneralRe: Dunamic type converstion. Please help? Pin
RichardS18-Sep-05 14:35
RichardS18-Sep-05 14:35 
GeneralRe: Dunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 14:59
LiquidE_SA18-Sep-05 14:59 
Questioncan we declare destructor of a class as private? (C++) Pin
Anonymous17-Sep-05 12:42
Anonymous17-Sep-05 12:42 

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.