Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newb having issues with an array member

Status
Not open for further replies.

evilmuffinman

Programmer
Aug 9, 2007
2
US
Using Visual C++ 2005 .NET ... I made a windows form and I want it to have an array member like so:

Code:
namespace Blueberries {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	
	public ref class Form1 : public System::Windows::Forms::Form
	{
          // buncha stuff for the form
          int data[1280][1024];
};
}
This throws the exeption:
Code:
1>d:\projects\blueberries\blueberries\Form1.h(120) : error C4368: cannot define 'data' as a member of managed 'Blueberries::Form1': mixed types are not supported
 
Maybe I could rephrase...

How do I get an array member for a "managed class"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top