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

COM

 
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 
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 
I write custom ActiveX controls for an application that has been slow to support ActiveX completely. In fact, only the recent release of the software claims to support the ability to modify and save ActiveX control properties during design time. So, I plopped my custom controls on a form, but no properties.

The application developers informed me that the design tools only look for properties by scanning the "methods" section of a control's type library rather than the "properties" section. Of course, my properties are all listed on "properties" because VC++ 6.0 does this automatically when you add properties via the Class Wizard.

Example: here's what my property looks like:

dispinterface _DMyControl
{
    properties:
    [id(1)] BSTR Caption;
    
    methods:
    [id(DISPID_ABOUTBOX)] void AboutBox();
};

But, here's what the application would prefer:

dispinterface _DMyControl
{
    properties:
    
    methods:
    [id(0x00000001), propget] BSTR Caption();
    [id(0x00000001), propput] void Caption([in] BSTR lpszNewValue);
    [id(DISPID_ABOUTBOX)] void AboutBox();
};

My question is: does anyone have information or an opinion on which method is preferrable? I ask because the application developers refuse to support straight "properties" on the grounds that so few controls use this paradigm. I want to know if there is a reason I should conform to using purely methods or if I should push the company to support properties.


Kevin Fournier
SRP Computer Solutions, Inc.
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 
QuestionHow to implement ScrollBars in a atl control Pin
cosmicYang31-Aug-04 20:03
cosmicYang31-Aug-04 20:03 
AnswerRe: How to implement ScrollBars in a atl control Pin
Anonymous1-Sep-04 6:24
Anonymous1-Sep-04 6:24 

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.