Click to See Complete Forum and Search --> : Microsoft::DirectX::DirectSound::Notify->SetNotificationPosition


POla
March 10th, 2008, 07:32 AM
Notify^ notify
BufferNotifyPosition^ buffer1 = gcnew BufferNotifyPosition();
BufferNotifyPosition^ buffer2 = gcnew BufferNotifyPosition();
(the two buffer1 and buffer2 then be assigned a value but here no state)

in c#
notify.SetNotificationPosition( new BufferNotifyPosition[] { buffer1, buffer2});

in c++/cli the array type need to be cli::array<type, dimension>^
notify->SetNotificationPosition( gcnew array<BufferNotifyPosition^, 1> { buffer1, buffer2});

Here is the question:
the code in c++/cli appear an error:

Microsoft::DirectX::DirectSound::Notify::SetNotificationPosition: cannot convert the parameter 1 from cli::array<type, dimension>^ to cli::array<type, dimension>^

lol, it is the same type why appear to be an error?