I have a managed C++ class, with a method whose constructor signature is:
tools_package_net::PackageInfo::PackageInfo(array<Byte>^ bytes)
Within the constructor I wish to call a method on an unmanaged class with the signature:
bool PackageInformation::ReadProject(const unsigned char *data, size_t size)
So I want to call “ReadProject”, passing in the data from my “bytes” array. The “size” I can pass using “bytes.Length”. But how can I get the data itself? Can I simply typecast the first element &bytes[0] (ala std::vector)?
Any help would be greatly appreciated.
According this book.