how to use .net containers


now i'm trying to use System::collection::Generic::array
and List and LinkedList
i tried to set the array type of my defined type
as i made a new class
then included this class in my project
but when i write
array< myclassname> anyname ;

the compiler tells me this error:
Generic type argument for'T' can not be 'myclassname' , it must be a value type or a handle to a reference type

so what can do
noting that my project is a windows application project not console one so i can't use STL
You're at the wrong address, this is a C++ forum.
is my question in algebra !!!!
mohamedhassan wrote:
is my question in algebra !!!!

You forgot a question mark there. Anyway, it seems you're using a .NET language like C#, not C++.

Incidentally, the STL is part of C++ and if you write a Windows application in C++ you can (and probably should) use it.
Are you sure Array is part of that namespace? I couldn't find it here...

http://msdn.microsoft.com/en-us/library/system.collections.generic.aspx

And why can't you use STL in a windows application?
mohamedhassan wrote:
is my question in algebra !!!!
Your question is about C++/CLI which is not C++, it's a different language
Topic archived. No new replies allowed.