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

Managed C++/CLI

 
GeneralRe: How can I get /clr support it's giving errors Pin
Richard MacCutchan24-Jan-12 22:01
mveRichard MacCutchan24-Jan-12 22:01 
JokeRe: How can I get /clr support it's giving errors Pin
Wes Aday25-Jan-12 3:06
professionalWes Aday25-Jan-12 3:06 
GeneralRe: How can I get /clr support it's giving errors Pin
appollosputnik26-Jan-12 17:31
appollosputnik26-Jan-12 17:31 
GeneralRe: How can I get /clr support it's giving errors Pin
Richard MacCutchan26-Jan-12 22:09
mveRichard MacCutchan26-Jan-12 22:09 
GeneralRe: How can I get /clr support it's giving errors Pin
Wes Aday27-Jan-12 3:26
professionalWes Aday27-Jan-12 3:26 
GeneralRe: How can I get /clr support it's giving errors Pin
John Schroedl27-Jan-12 6:16
professionalJohn Schroedl27-Jan-12 6:16 
GeneralRe: How can I get /clr support it's giving errors Pin
Philippe Mori19-Feb-12 2:42
Philippe Mori19-Feb-12 2:42 
QuestionWhere is this managed object stored? Pin
Frank__Q18-Jan-12 14:17
Frank__Q18-Jan-12 14:17 
C++
value class ValBase 
{ 
  public: 
    int a; 
}; 
 
ref class RefBase 
{ 
public: 
     int a; 
}; 
 
int main(array<System::String ^> ^args) 
{ 
 
RefBase^ RefBase1 = gcnew RefBase; //LEGAL. Ref type Managed Obj created on CLR heap. 
ValBase^ ValBase1 = gcnew ValBase; //LEGAL. Value type Managed Obj created on CLR heap. 
 
RefBase* RefBase2 = new RefBase;   //ILLEGAL: new cannot be used on Managed Ref Class 
ValBase* ValBase2 = new ValBase;   //This compiles okay but where is this "Managed Object" stored ? CLR heap or Native heap ?  
 
} 


In the last assignment where is the managed object stored ? I am totally new to C++ CLI.

Also, is it true that value types should use stack semantics to make code efficient ? i.e instead of ValBase^ ValBase1 = gcnew ValBase, I should just use ValBase ValBase1;
AnswerRe: Where is this managed object stored? Pin
George L. Jackson19-Jan-12 1:16
George L. Jackson19-Jan-12 1:16 
GeneralRe: Where is this managed object stored? Pin
Frank__Q19-Jan-12 10:34
Frank__Q19-Jan-12 10:34 
AnswerRe: Where is this managed object stored? Pin
Luc Pattyn19-Jan-12 10:54
sitebuilderLuc Pattyn19-Jan-12 10:54 
GeneralRe: Where is this managed object stored? Pin
slawomir_orlowski28-Jan-12 22:51
slawomir_orlowski28-Jan-12 22:51 
QuestionActiveX issue: ATL 8.0 text in IE Pin
birajendu5-Jan-12 19:32
birajendu5-Jan-12 19:32 
AnswerRe: ActiveX issue: ATL 8.0 text in IE Pin
John Schroedl6-Jan-12 4:48
professionalJohn Schroedl6-Jan-12 4:48 
GeneralRe: ActiveX issue: ATL 8.0 text in IE Pin
birajendu8-Jan-12 20:15
birajendu8-Jan-12 20:15 
QuestionUsing a webBrowser control to format process feedback. Pin
PapaGeek4-Jan-12 7:04
PapaGeek4-Jan-12 7:04 
AnswerRe: Using a webBrowser control to format process feedback. Pin
Luc Pattyn4-Jan-12 7:33
sitebuilderLuc Pattyn4-Jan-12 7:33 
AnswerRe: Using a webBrowser control to format process feedback. Pin
John Schroedl6-Jan-12 4:40
professionalJohn Schroedl6-Jan-12 4:40 
AnswerRe: Using a webBrowser control to format process feedback. Pin
Sam Hobbs13-Feb-12 19:22
Sam Hobbs13-Feb-12 19:22 
QuestionHow to marshal following native C++ objects to C++/CLI? Pin
Alok Jadhav3-Jan-12 19:55
Alok Jadhav3-Jan-12 19:55 
QuestionHow to define the Image in Headerfile like this? VC++2010 Pin
Paramu197330-Dec-11 23:28
Paramu197330-Dec-11 23:28 
AnswerRe: How to define the Image in Headerfile like this? VC++2010 Pin
Richard MacCutchan31-Dec-11 1:26
mveRichard MacCutchan31-Dec-11 1:26 
GeneralRe: How to define the Image in Headerfile like this? VC++2010 Pin
Paramu197331-Dec-11 1:57
Paramu197331-Dec-11 1:57 
QuestionHow do I create a text box with formatted text? Pin
PapaGeek30-Dec-11 7:58
PapaGeek30-Dec-11 7:58 
AnswerRe: How do I create a text box with formatted text? Pin
Luc Pattyn30-Dec-11 9:36
sitebuilderLuc Pattyn30-Dec-11 9:36 

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.