Click here to Skip to main content
16,004,854 members
Home / Discussions / COM
   

COM

 
GeneralDo I need to destory a SAFEARRAY that is passed in as an argument Pin
timtanbin3-Sep-04 19:57
timtanbin3-Sep-04 19:57 
GeneralRe: Do I need to destory a SAFEARRAY that is passed in as an argument Pin
Anonymous4-Sep-04 8:23
Anonymous4-Sep-04 8:23 
GeneralRe: Do I need to destory a SAFEARRAY that is passed in as an argument Pin
timtanbin4-Sep-04 13:32
timtanbin4-Sep-04 13:32 
GeneralRe: Do I need to destory a SAFEARRAY that is passed in as an argument Pin
peterchen4-Sep-04 15:00
peterchen4-Sep-04 15:00 
QuestionHow to extract data from VARIANT? Pin
Nirav Doshi3-Sep-04 7:41
Nirav Doshi3-Sep-04 7:41 
AnswerRe: How to extract data from VARIANT? Pin
Jörgen Sigvardsson3-Sep-04 8:33
Jörgen Sigvardsson3-Sep-04 8:33 
GeneralRe: How to extract data from VARIANT? Pin
Nirav Doshi3-Sep-04 8:52
Nirav Doshi3-Sep-04 8:52 
GeneralRe: How to extract data from VARIANT? Pin
Jörgen Sigvardsson3-Sep-04 9:09
Jörgen Sigvardsson3-Sep-04 9:09 
Nirav Doshi wrote:
Had tried this earlier, but what further?

I can't help you with that, I'm afraid. You need a description of the interface(s) which the returned object exposes.

Nirav Doshi wrote:
The doc only explains this with reference to VB Samples!

That may be of good use. You could access the object using the dispatch interface using a dispatch driver such as this one[^]. Then you'd have to do something like:
XYDispDriver disp;
disp.Attach(varFolder.pdispVal);
::VariantClear(&varFolder); // Just to remind you of releasing this one ;)
VARIANT* var = disp.GetProperty(_T("PropertyName"));
UseVariant(*var);
var = disp.InvokeMethod(_T("MethodName"), arg1, arg2);
UseVariant(*var);
Please read the article for more information on how the XYDispDriver works as I'm not the author of it.

And also look at the VB samples to learn about the properties and methods which can be used. Happy coding!

--
...Coca Cola, sometimes war...
GeneralRe: How to extract data from VARIANT? Pin
Nirav Doshi3-Sep-04 9:16
Nirav Doshi3-Sep-04 9:16 
QuestionActiveX TypeLib Practices: property or method? Pin
KFournier3-Sep-04 6:29
KFournier3-Sep-04 6:29 
AnswerRe: ActiveX TypeLib Practices: property or method? Pin
Jörgen Sigvardsson3-Sep-04 8:40
Jörgen Sigvardsson3-Sep-04 8:40 
AnswerRe: ActiveX TypeLib Practices: property or method? Pin
Jörgen Sigvardsson3-Sep-04 8:41
Jörgen Sigvardsson3-Sep-04 8:41 
GeneralRe: ActiveX TypeLib Practices: property or method? Pin
KFournier3-Sep-04 9:15
KFournier3-Sep-04 9:15 
QuestionIs my client still there? Pin
FearlessBurner2-Sep-04 6:29
FearlessBurner2-Sep-04 6:29 
AnswerRe: Sorted :) Pin
FearlessBurner6-Sep-04 1:50
FearlessBurner6-Sep-04 1:50 
GeneralOut-Process Vs In-Process COM Performnace Issue Pin
DeepakSharma2-Sep-04 1:23
DeepakSharma2-Sep-04 1:23 
GeneralRe: Out-Process Vs In-Process COM Performnace Issue Pin
geo_m14-Oct-04 1:55
geo_m14-Oct-04 1:55 
Generalexplorer bar Pin
rolati1-Sep-04 23:45
rolati1-Sep-04 23:45 
GeneralRe: explorer bar Pin
Anonymous2-Sep-04 8:50
Anonymous2-Sep-04 8:50 
QuestionHow to get the application Root Directory runtime? Pin
Member 7436551-Sep-04 16:46
Member 7436551-Sep-04 16:46 
GeneralCOM release build problem Pin
alex.barylski31-Aug-04 20:36
alex.barylski31-Aug-04 20:36 
GeneralRe: COM release build problem Pin
Rory Solley31-Aug-04 21:30
Rory Solley31-Aug-04 21:30 
GeneralRe: COM release build problem Pin
alex.barylski1-Sep-04 9:10
alex.barylski1-Sep-04 9:10 
GeneralRe: COM release build problem Pin
ShaunOldale1-Sep-04 12:24
ShaunOldale1-Sep-04 12:24 
GeneralRe: COM release build problem Pin
alex.barylski2-Sep-04 18:33
alex.barylski2-Sep-04 18:33 

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.