嗨!我在 Visual C++ 6 中有以下代码,我想在 C# 中转换它。
SAFEARRAY * psa = NULL;
SAFEARRAYBOUND rgsabound;
rgsabound.lLbound = 0;
rgsabound.cElements = infoList.GetCount();
psa = SafeArrayCreate(VT_BSTR, 1, &rgsabound);
......
VARIANT listaF;
V_VT(&listaF) = VT_ARRAY|VT_BSTR;
listaF.parray = psa;
有人能帮我吗?