Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte data __gc [] = __gc new byte [100];
- error C2726: '__gc new' may only be used to create an object with managed type
- Byte data __gc [] = new Byte __gc [100];
- cli::array<unsigned char>^ data = gcnew cli::array<unsigned char>(100);
- cli::array<byte>^ data = gcnew cli::array<byte>(100);
- #include "stdafx.h"
- using namespace System;
- int main(array<System::String ^> ^args)
- {
- cli::array<System::Byte^>^ a =
- gcnew cli::array<System::Byte^>(101);
- a[1] = (unsigned char)124;
- cli::array<unsigned char>^ b =
- gcnew cli::array<unsigned char>(102);
- b[1] = (unsigned char)211;
- Console::WriteLine(a->Length);
- Console::WriteLine(b->Length);
- Console::WriteLine(a[1] + " : " + b[1]);
- return 0;
- }
- 101
- 102
- 124 : 211
- void fx (array<byte>^ data);
- error C2061: syntax error : identifier 'array'
Add Comment
Please, Sign In to add comment