L
Lupina
#pragma once
using namespace System;
__gc class CWords
{
public:
CWords(void);
~CWords(void);
int iPassedItems[1000];
};
How to add array of integers to my class?
int iPassedItems[1000]; - makes error :
error C2697: 'iPassedItems' : must explicitly specify __gc or __nogc for an
array declared in a managed type
I know, that I have to use __gc in my array, but I don't know how to use it.
Please Help
using namespace System;
__gc class CWords
{
public:
CWords(void);
~CWords(void);
int iPassedItems[1000];
};
How to add array of integers to my class?
int iPassedItems[1000]; - makes error :
error C2697: 'iPassedItems' : must explicitly specify __gc or __nogc for an
array declared in a managed type
I know, that I have to use __gc in my array, but I don't know how to use it.
Please Help