Click here to Skip to main content
16,006,605 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: screensaver source code samples Pin
Christian Graus15-Jun-05 13:50
protectorChristian Graus15-Jun-05 13:50 
GeneralUnicode Support for C++ code Pin
Sree_india14-Jun-05 19:09
Sree_india14-Jun-05 19:09 
GeneralRe: Unicode Support for C++ code Pin
Anonymous17-Jun-05 15:57
Anonymous17-Jun-05 15:57 
Generalcreating windows service application Pin
lagumaster14-Jun-05 10:43
lagumaster14-Jun-05 10:43 
GeneralPorting an application Pin
joseph195014-Jun-05 2:24
joseph195014-Jun-05 2:24 
GeneralRe: Porting an application Pin
Christian Graus14-Jun-05 14:28
protectorChristian Graus14-Jun-05 14:28 
GeneralRe: Porting an application Pin
Anonymous15-Jun-05 2:17
Anonymous15-Jun-05 2:17 
Generalpassing a __nogc array in a method... Pin
bad_muko10-Jun-05 1:54
bad_muko10-Jun-05 1:54 
Well my code is slpitted in: one myClasses.h and one myClasses.cpp files and it's something like this:

// *** myClasses.h: ***
#define SIZE 10
public __gc class MyClass;
public __gc class AnotherMyClass;

public __gc class MyClass{
public:
MyClass();
void myMethod();
private:
bool myArray __nogc[SIZE];
AnotherMyClass* anotherMyClass;
};

public __gc class AnotherMyClass{
public:
AnotherMyClass(bool myArray __nogc[SIZE]){ // constructor is inlined
for(int i=0; i<size; i++)
="" this-="">myArray[i] = myArray[i];
}
private:
bool myArray __nogc[SIZE];
};

//*** myClasses.cpp: ***
MyClass::MyClass(){
for(int i; i<size; i++)="" myarray[i]="true;
" anothermyclass="NULL;
}

void" myclass::mymethod(){
="" anothermyclass(myarray);
}

="" ***="" oh,="" and="" this="" is="" the="" main="" (in="" another="" file):="" ***
int="" _tmain(){
="" myclass*="" myclass="new" myclass();
="" myclass-="">myMethod();
return 0;
}

So far I receive this error, but I can't understand why and how to fix it (without using managed arrays):
error C2664: 'AnotherMyClass::AnotherMyClass' : cannot convert parameter 1 from 'bool [10]' to 'bool []'

I can't find anything on google too, help help!
GeneralRe: passing a __nogc array in a method... Pin
Saksida Bojan15-Jun-05 20:52
Saksida Bojan15-Jun-05 20:52 
GeneralCalling managed c++ dll from MFC app Pin
Roopa Krishnappa9-Jun-05 3:26
Roopa Krishnappa9-Jun-05 3:26 
GeneralRe: Calling managed c++ dll from MFC app Pin
ursus zeta11-Jun-05 11:48
ursus zeta11-Jun-05 11:48 
GeneralHad Another Thought Pin
ursus zeta12-Jun-05 11:12
ursus zeta12-Jun-05 11:12 
GeneralRe: Calling managed c++ dll from MFC app Pin
Roopa Krishnappa13-Jun-05 2:36
Roopa Krishnappa13-Jun-05 2:36 
Generalsorry Pin
ursus zeta14-Jun-05 12:15
ursus zeta14-Jun-05 12:15 
Generaldeclaration of classes Pin
prat789-Jun-05 2:29
prat789-Jun-05 2:29 
GeneralRe: declaration of classes Pin
Christian Graus13-Jun-05 12:26
protectorChristian Graus13-Jun-05 12:26 
GeneralRe: declaration of classes Pin
toxcct13-Jun-05 20:19
toxcct13-Jun-05 20:19 
GeneralConverting managed class pointers to unmanaged void pointers and back. Pin
Bill Langlais7-Jun-05 17:54
Bill Langlais7-Jun-05 17:54 
GeneralRe: Converting managed class pointers to unmanaged void pointers and back. Pin
Bill Langlais8-Jun-05 1:54
Bill Langlais8-Jun-05 1:54 
GeneralManaged + Unmanaged C++ dll. Pin
rkvs7-Jun-05 16:36
rkvs7-Jun-05 16:36 
Generalquestion re. portability of an MFC app Pin
joseph19506-Jun-05 10:26
joseph19506-Jun-05 10:26 
GeneralRe: question re. portability of an MFC app Pin
joseph19506-Jun-05 10:27
joseph19506-Jun-05 10:27 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus6-Jun-05 12:41
protectorChristian Graus6-Jun-05 12:41 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 4:54
joseph19507-Jun-05 4:54 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus7-Jun-05 12:04
protectorChristian Graus7-Jun-05 12:04 

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.