c++ Programming Glossary: safearray
Convert/cast SAFEARRAY of IUnknowns to an iterable array of interface pointers http://stackoverflow.com/questions/12412533/convert-cast-safearray-of-iunknowns-to-an-iterable-array-of-interface-pointers cast SAFEARRAY of IUnknowns to an iterable array of interface pointers I have.. should represent the array of those pointers right SAFEARRAY orders iPtr GetOrders orders Now at this point I need some COM.. need some COM magic I don't yet understand to convert that SAFEARRAY to IOrderPtr or something so I can iterate over the whole array..
passing an array of structs from c# to C++ using com callable wrapper http://stackoverflow.com/questions/12503041/passing-an-array-of-structs-from-c-sharp-to-c-using-com-callable-wrapper about array size. You can try to marshal it as a SAFEARRAY but IMO SAFEARRAYs are pain in the neck. I prefer to model it.. size. You can try to marshal it as a SAFEARRAY but IMO SAFEARRAYs are pain in the neck. I prefer to model it as this ComVisible.. explicitly CoTaskMemFree data With regard to comment about SAFEARRAY s they are required only if the interface must be automation..
need to call managed code from unmanaged c++ code http://stackoverflow.com/questions/20514785/need-to-call-managed-code-from-unmanaged-c-code error 0x80131538 and first rank changing every time C code SAFEARRAY message SafeArrayCreateVector VT_UI1 0 1 SAFEARRAY signedMessage.. C code SAFEARRAY message SafeArrayCreateVector VT_UI1 0 1 SAFEARRAY signedMessage SafeArrayCreateVector VT_UI1 0 1 _bstr_t userName.. wrapper in .tlh file for function HRESULT SignAttached SAFEARRAY message SAFEARRAY signedMessage _bstr_t userName and if to see..
Marshal safearray of struct inside struct http://stackoverflow.com/questions/2233766/marshal-safearray-of-struct-inside-struct Inner double data1 double data2 struct Outer double data3 SAFEARRAY innerData int WINAPI ProcessData Outer outer ... I tried the..
return array from com object http://stackoverflow.com/questions/6338879/return-array-from-com-object would look like this id 1 HRESULT GetAlarms out retval SAFEARRAY VARIANT pAlarms The corresponding C method would look like this.. would look like this STDMETHODIMP CMyClass GetAlarms SAFEARRAY pAlarms CComSafeArray VARIANT alarms 3 CComVariant value value..
|