Click here to Skip to main content
15,908,776 members
Home / Discussions / COM
   

COM

 
GeneralRe: Problem while destroying SafeArray Pin
Steve S2-Mar-04 23:21
Steve S2-Mar-04 23:21 
GeneralRe: Problem while destroying SafeArray Pin
Anonymous5-Mar-04 3:04
Anonymous5-Mar-04 3:04 
GeneralRe: Problem while destroying SafeArray Pin
Steve S7-Mar-04 21:56
Steve S7-Mar-04 21:56 
GeneralRe: Problem while destroying SafeArray Pin
Anonymous10-Mar-04 2:06
Anonymous10-Mar-04 2:06 
GeneralRe: Problem while destroying SafeArray Pin
Prakash Nadar6-Mar-04 6:45
Prakash Nadar6-Mar-04 6:45 
GeneralRe: Problem while destroying SafeArray Pin
Anonymous10-Mar-04 2:07
Anonymous10-Mar-04 2:07 
Generalvariant arrays.. Pin
safee ullah29-Feb-04 21:08
safee ullah29-Feb-04 21:08 
GeneralRe: variant arrays.. Pin
Steve S1-Mar-04 0:12
Steve S1-Mar-04 0:12 
MSDN.
A variant array is just that, an array of VARIANT types, use just like any other kind of SAFEARRAY, except of course, that your basic array type is VARIANT rather than BSTR or whatever.

It's worth remembering that SafeArrayGetElement and SafeArrayPutElement deal with COPYING the data they work with, so Get gives you a new, second, copy and Put will not care what you do with the original you pass it. This is true for other "managed" types (IUnknown, BSTR etc) not just VARIANTs.

Of course, your element type is determined by the .vt member of each element, not by the type of the array, but each element is the same size Smile | :)

Steve S
Generalvariant types.. Pin
anand12312329-Feb-04 20:06
sussanand12312329-Feb-04 20:06 
GeneralRe: variant types.. Pin
ian mariano29-Feb-04 20:45
ian mariano29-Feb-04 20:45 
GeneralRe: variant types.. Pin
safee ullah29-Feb-04 21:03
safee ullah29-Feb-04 21:03 
GeneralRe: variant types.. Pin
Steve S1-Mar-04 0:16
Steve S1-Mar-04 0:16 
GeneralRe: variant types.. Pin
ian mariano1-Mar-04 11:39
ian mariano1-Mar-04 11:39 
GeneralRe: variant types.. Pin
anand1231232-Mar-04 18:03
sussanand1231232-Mar-04 18:03 
GeneralUsing SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Steef29-Feb-04 5:48
Steef29-Feb-04 5:48 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Prakash Nadar29-Feb-04 16:49
Prakash Nadar29-Feb-04 16:49 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Steef (Stephan Deckers)29-Feb-04 19:23
Steef (Stephan Deckers)29-Feb-04 19:23 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Prakash Nadar29-Feb-04 19:53
Prakash Nadar29-Feb-04 19:53 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Steef (Stephan Deckers)29-Feb-04 20:04
Steef (Stephan Deckers)29-Feb-04 20:04 
GeneralDifference between Com DLL and win32 DLL Pin
Balkrishna Talele27-Feb-04 17:20
Balkrishna Talele27-Feb-04 17:20 
GeneralRe: Difference between Com DLL and win32 DLL Pin
Prakash Nadar29-Feb-04 16:54
Prakash Nadar29-Feb-04 16:54 
GeneralOpen source file upload activeX control Pin
lognez27-Feb-04 4:14
lognez27-Feb-04 4:14 
GeneralHelp with VB control in VC Pin
Chris Ulliott27-Feb-04 2:55
Chris Ulliott27-Feb-04 2:55 
GeneralActiveX control developement--help Pin
jithus27-Feb-04 1:26
jithus27-Feb-04 1:26 
GeneralRe: ActiveX control developement--help Pin
yhjnet30-Aug-10 16:54
yhjnet30-Aug-10 16:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.