CLI Array Syntax in Visual Studio 2005 ??

hio=]

i need a buffer to read binary data into .so i will ues this method:
===========================
System.Int32 Read(System.Byte[] buffer, System.Int32 index, System.Int32 count)
    Member of System.IO.BinaryReader
==========================
as you can see the first parameter is System.Byte[], so i declared in my managed class  as follows:
using the old synatx
===========================
ref class pagingControl
{
      static const int pageArraySize =   100;
private:
      Byte nextBuffer [pageArraySize];

===========================

but i got this error:
==========================
error C4980: '__gc' : use of this keyword requires /clr:oldSyntax command line option
============================

so i changed to the new syntax:
===========================
ref class pagingControl
{
      static const int pageArraySize =   100;
private:

              array<Byte>^ prevBuffer [pageArraySize];

=================================



but i got this error:
==========================
error C2728: 'cli::array<Type> ^' : a native array cannot contain this managed type
        with
        [
            Type=unsigned char
        ]
        Did you mean 'array<cli::array<Type> ^>'?
        with
        [
            Type=unsigned char
        ]
============================


what should i do?
as_cloudsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlexFMCommented:
array<Byte>^ prevBuffer;

In class constructor:

prevBuffer = gcnew array<Byte>(pageArraySize);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.