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

Managed C++/CLI

 
GeneralI need books pls Pin
extremeg21-Mar-04 20:35
extremeg21-Mar-04 20:35 
GeneralRe: I need books pls Pin
ravjak25-Mar-04 7:03
ravjak25-Mar-04 7:03 
General"blinking" word Pin
millienium bear21-Mar-04 0:07
millienium bear21-Mar-04 0:07 
GeneralRe: "blinking" word Pin
ian mariano21-Mar-04 10:47
ian mariano21-Mar-04 10:47 
GeneralRe: "blinking" word Pin
millienium bear22-Mar-04 1:47
millienium bear22-Mar-04 1:47 
GeneralRe: "blinking" word Pin
ian mariano23-Mar-04 9:50
ian mariano23-Mar-04 9:50 
GeneralReturning array references Pin
bisquic19-Mar-04 5:58
bisquic19-Mar-04 5:58 
GeneralRe: Returning array references Pin
bisquic22-Mar-04 10:01
bisquic22-Mar-04 10:01 
Ok, here is something more specific...

I have a class, class1, that contains 2 arrays. Let's call them array1 and array2. I am instantiating 3 objects of another class, class2, from class1. To the first two, I am passing array1 to the constructor, and to the third, I am passing array2. I would like to have these three new objects hold a reference to the arrays in the main class instead of holding their own copy. So in the constructor I'd like to do something like:

Class2( int arrayRef __gc[] ) {
this->arrayRef= &arrayRef;
}

or maybe:

Class2( int (*arrayRef) __gc[] ) {
this->arrayRef= arrayRef;
}

Either way, when I try to declare an array pointer in the header file of class2 like:

int (*arrayRef) __gc[];

I get the following compile error:

"cannot declare interior __gc pointer or reference as a member of class2"

So, I'm thinking it is not even possible to have a class hold a private reference to an array of another class. Is there some way to do this?
GeneralRe: Returning array references Pin
Andy Wieberneit30-Mar-04 10:59
Andy Wieberneit30-Mar-04 10:59 
Generalconverting managed C++ to native/unmanaged code Pin
Anonymous19-Mar-04 4:47
Anonymous19-Mar-04 4:47 
GeneralNewbie question Pin
almc18-Mar-04 3:18
almc18-Mar-04 3:18 
GeneralRe: Newbie question Pin
ian mariano18-Mar-04 4:28
ian mariano18-Mar-04 4:28 
GeneralRe: Newbie question Pin
almc18-Mar-04 23:04
almc18-Mar-04 23:04 
GeneralRe: Newbie question Pin
ian mariano19-Mar-04 3:24
ian mariano19-Mar-04 3:24 
GeneralEnhansment to LCE System Pin
Buddhike de Silva16-Mar-04 16:19
Buddhike de Silva16-Mar-04 16:19 
Generalc++ Pin
shriganesh11-Mar-04 3:52
shriganesh11-Mar-04 3:52 
GeneralRe: c++ Pin
ravjak14-Mar-04 21:57
ravjak14-Mar-04 21:57 
GeneralRe: c++ Pin
Christian Graus15-Mar-04 15:06
protectorChristian Graus15-Mar-04 15:06 
GeneralRe: c++ Pin
Anonymous15-Mar-04 16:10
Anonymous15-Mar-04 16:10 
GeneralManaged c++ acting funny Pin
xcvbxcvbxcv10-Mar-04 5:29
xcvbxcvbxcv10-Mar-04 5:29 
GeneralRe: Managed c++ acting funny Pin
Anders Molin15-Mar-04 15:02
professionalAnders Molin15-Mar-04 15:02 
GeneralHiding a serializable property Pin
Hamzeh8-Mar-04 23:14
Hamzeh8-Mar-04 23:14 
GeneralRe: Hiding a serializable property Pin
ian mariano9-Mar-04 9:16
ian mariano9-Mar-04 9:16 
GeneralRe: Hiding a serializable property Pin
Hamzeh9-Mar-04 19:31
Hamzeh9-Mar-04 19:31 
GeneralRe: Hiding a serializable property Pin
ian mariano10-Mar-04 5:37
ian mariano10-Mar-04 5:37 

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.