COM: Create a VT_ARRAY with VT_BSTR values
问题 I'm a COM newbie and I think what I have is correct, but the runtime doesn't like it. Any help is much appreciated. I need to invoke a COM function that takes in a single dimensional array of BSTRs. Specifically, the documentation says the parameter must be: Function: AddFiles ( [in] VARIANT * filePaths ) filePaths The single-dimensioned array of full paths to each file or folder. filePaths can be of type VT_ARRAY|VT_VARIANT , where each entry is a VT_BSTR , or VT_ARRAY|VT_BSTR . I have a