好的,这就去。我正在为directx 创建包装器并使用类型。我知道我很可怕,但请指出我正确的方向。
Platform::Array<short>^ Font::GetGlyphIndices(const Platform::Array<int>^ codePoints)
{
font->GetGlyphIndices(const UINT32 *codePoints, UINT32 count, UINT16 *indices);
Platform::Array<short>^ in; //should return indices
return in;
}
如何转换类型?VS 抛出错误为"signature of public member contains native type 'int []'"
. 所以,更新代码。