Click here to Skip to main content
15,908,274 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAny one help Memory Leak ? Pin
Amarelia3-Sep-04 7:02
Amarelia3-Sep-04 7:02 
AnswerRe: Any one help Memory Leak ? Pin
David Crow3-Sep-04 7:10
David Crow3-Sep-04 7:10 
AnswerRe: Any one help Memory Leak ? Pin
Rick York3-Sep-04 13:09
mveRick York3-Sep-04 13:09 
GeneralDatabase work in Visual C++ Pin
Iftikhar Baig3-Sep-04 6:36
sussIftikhar Baig3-Sep-04 6:36 
GeneralRe: Database work in Visual C++ Pin
David Crow3-Sep-04 7:01
David Crow3-Sep-04 7:01 
GeneralRe: Database work in Visual C++ Pin
Imtiaz Baig3-Sep-04 7:08
sussImtiaz Baig3-Sep-04 7:08 
GeneralRe: Database work in Visual C++ Pin
David Crow3-Sep-04 7:14
David Crow3-Sep-04 7:14 
QuestionActiveX TypeLib Practices: property or method? Pin
KFournier3-Sep-04 6:28
KFournier3-Sep-04 6:28 
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.
GeneralHey i am looking for real MSGINA code Pin
ThatsAlok3-Sep-04 6:21
ThatsAlok3-Sep-04 6:21 
GeneralRe: Hey i am looking for real MSGINA code Pin
Michael Dunn3-Sep-04 7:18
sitebuilderMichael Dunn3-Sep-04 7:18 
GeneralRe: Hey i am looking for real MSGINA code Pin
ThatsAlok3-Sep-04 19:44
ThatsAlok3-Sep-04 19:44 
GeneralRe: Hey i am looking for real MSGINA code Pin
David Crow7-Sep-04 7:51
David Crow7-Sep-04 7:51 
GeneralRe: Hey i am looking for real MSGINA code Pin
ThatsAlok7-Sep-04 23:09
ThatsAlok7-Sep-04 23:09 
Generalexcel automation!! Pin
pnpfriend3-Sep-04 5:56
pnpfriend3-Sep-04 5:56 
GeneralRe: excel automation!! Pin
David Crow3-Sep-04 6:11
David Crow3-Sep-04 6:11 
GeneralRe: excel automation!! Pin
pnpfriend3-Sep-04 6:56
pnpfriend3-Sep-04 6:56 
GeneralRe: excel automation!! Pin
David Crow3-Sep-04 7:02
David Crow3-Sep-04 7:02 
GeneralRe: excel automation!! Pin
pnpfriend3-Sep-04 9:02
pnpfriend3-Sep-04 9:02 
GeneralRe: excel automation!! Pin
David Crow3-Sep-04 9:42
David Crow3-Sep-04 9:42 
GeneralRe: excel automation!! Pin
pnpfriend7-Sep-04 7:33
pnpfriend7-Sep-04 7:33 
GeneralActivate a specific View in an MDI MFC Doc/View App Pin
Paul Steane3-Sep-04 5:28
Paul Steane3-Sep-04 5:28 
GeneralRunning an .exe programmatically Pin
anderslundsgard3-Sep-04 5:13
anderslundsgard3-Sep-04 5:13 
GeneralRe: Running an .exe programmatically Pin
David Crow3-Sep-04 6:12
David Crow3-Sep-04 6:12 
GeneralRe: Running an .exe programmatically Pin
Michael Dunn3-Sep-04 7:20
sitebuilderMichael Dunn3-Sep-04 7:20 
GeneralReplace Minimize Button Pin
Caligulo3-Sep-04 4:34
Caligulo3-Sep-04 4:34 

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.