managed C++: from 'array<wchar_t>^' to 'wchar_t*'

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I try something like:
array<wchar_t>^ buf_str = gcnew array<wchar_t>(len);
wchar_t* p_buf_str = &buf_str[0];

And although that work in C#, tha doesn't work in C++ ?!?

Also, for some reason I cannot declare them on the stack
array<wchar_t> buf_str = gcnew array<wchar_t>(len);
(without the ^)
but I could do thta with other type.. is ther a work around?
 
Back
Top