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

Managed C++/CLI

 
QuestionArray of CheckBoxes Pin
Sniper23418-Jan-06 18:49
Sniper23418-Jan-06 18:49 
AnswerRe: Array of CheckBoxes Pin
toxcct18-Jan-06 21:58
toxcct18-Jan-06 21:58 
QuestionFree C++ Compiler question Pin
JGHayles18-Jan-06 15:37
JGHayles18-Jan-06 15:37 
GeneralRe: Free C++ Compiler question Pin
toxcct18-Jan-06 21:49
toxcct18-Jan-06 21:49 
AnswerRe: Free C++ Compiler question Pin
Nish Nishant19-Jan-06 3:51
sitebuilderNish Nishant19-Jan-06 3:51 
QuestionCalling native C++ function from managed C++ via base class pointer using polymorphism Pin
chervu18-Jan-06 9:05
chervu18-Jan-06 9:05 
AnswerRe: Calling native C++ function from managed C++ via base class pointer using polymorphism Pin
Nish Nishant18-Jan-06 10:06
sitebuilderNish Nishant18-Jan-06 10:06 
GeneralRe: Calling native C++ function from managed C++ via base class pointer using polymorphism Pin
chervu19-Jan-06 13:07
chervu19-Jan-06 13:07 
Hello,

Thank you for the clarification. I thought of trying this problem in baby steps as mentioned below:

(1) Have a singleton unmanaged class (say X), shared across managed C++ and native C++.
(Please note a big assumption here. I'm not sure whether this makes sense as the heaps of native and managed worlds are handled differently.
(2) Set Derived class instance in X's singleton instance. X stores this instance in a base class pointer.
(3) Call virtual method on this base class pointer for native client derived class implementation to get executed.

But I'm 100% doubtful about step-1. It is because the heaps of native and managed worlds are different.Is this correct? Is there any alternative way to share the instance of a class between native and managed boundaries using IJW? At least can I use GlobalAlloc() to allocate the bytes to share across managed and native worlds?

How does .NET runtime know when to allocate on managed heap and when to allocate on native heap? Does it decide based on the caller (client)?


Thank you & Best Regards

-- modified at 19:07 Thursday 19th January, 2006
GeneralRe: Calling native C++ function from managed C++ via base class pointer using polymorphism Pin
Nish Nishant19-Jan-06 13:57
sitebuilderNish Nishant19-Jan-06 13:57 
GeneralRe: Calling native C++ function from managed C++ via base class pointer using polymorphism Pin
chervu23-Jan-06 11:56
chervu23-Jan-06 11:56 
QuestionString Arrays Pin
hmklakmal18-Jan-06 5:18
hmklakmal18-Jan-06 5:18 
AnswerRe: String Arrays Pin
Nish Nishant18-Jan-06 5:28
sitebuilderNish Nishant18-Jan-06 5:28 
JokeRe: String Arrays Pin
toxcct18-Jan-06 5:59
toxcct18-Jan-06 5:59 
GeneralRe: String Arrays Pin
Nish Nishant18-Jan-06 6:55
sitebuilderNish Nishant18-Jan-06 6:55 
QuestionRe: String Arrays HELPPPPPPPPPPPPPPPPPPPPPP Pin
hmklakmal19-Jan-06 13:18
hmklakmal19-Jan-06 13:18 
AnswerRe: String Arrays HELPPPPPPPPPPPPPPPPPPPPPP Pin
Nish Nishant19-Jan-06 13:55
sitebuilderNish Nishant19-Jan-06 13:55 
QuestionPlease I need help Pin
Saksida Bojan17-Jan-06 10:44
Saksida Bojan17-Jan-06 10:44 
AnswerRe: Please I need help Pin
Saksida Bojan18-Jan-06 5:17
Saksida Bojan18-Jan-06 5:17 
GeneralRe: Please I need help Pin
Nish Nishant18-Jan-06 5:31
sitebuilderNish Nishant18-Jan-06 5:31 
GeneralRe: Please I need help Pin
Saksida Bojan18-Jan-06 5:38
Saksida Bojan18-Jan-06 5:38 
GeneralRe: Please I need help Pin
Nish Nishant18-Jan-06 5:55
sitebuilderNish Nishant18-Jan-06 5:55 
GeneralRe: Please I need help Pin
Saksida Bojan18-Jan-06 6:03
Saksida Bojan18-Jan-06 6:03 
GeneralRe: Please I need help Pin
Nish Nishant18-Jan-06 6:53
sitebuilderNish Nishant18-Jan-06 6:53 
GeneralRe: Please I need help Pin
Saksida Bojan19-Jan-06 22:51
Saksida Bojan19-Jan-06 22:51 
Questionabout IMediaSeeking Pin
abstarsss15-Jan-06 21:10
abstarsss15-Jan-06 21: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.