Click here to Skip to main content
15,918,303 members
Home / Discussions / COM
   

COM

 
QuestionDeriving multiple interfaces from base interface (aggregation) Pin
Andre xxxxxxx24-Aug-06 4:38
Andre xxxxxxx24-Aug-06 4:38 
AnswerRe: Deriving multiple interfaces from base interface (aggregation) Pin
Stephen Hewitt24-Aug-06 17:44
Stephen Hewitt24-Aug-06 17:44 
GeneralRe: Deriving multiple interfaces from base interface (aggregation) Pin
Andre xxxxxxx25-Aug-06 3:48
Andre xxxxxxx25-Aug-06 3:48 
GeneralRe: Deriving multiple interfaces from base interface (aggregation) Pin
Stephen Hewitt26-Aug-06 2:43
Stephen Hewitt26-Aug-06 2:43 
QuestionCalling a ATL COM DLL interface from VBScript routine Pin
AKSIVAKUMAR23-Aug-06 23:21
AKSIVAKUMAR23-Aug-06 23:21 
AnswerRe: Calling a ATL COM DLL interface from VBScript routine Pin
Andre xxxxxxx24-Aug-06 12:11
Andre xxxxxxx24-Aug-06 12:11 
GeneralRe: Calling a ATL COM DLL interface from VBScript routine Pin
AKSIVAKUMAR25-Aug-06 7:51
AKSIVAKUMAR25-Aug-06 7:51 
QuestionBest practice for strings Pin
Andre xxxxxxx23-Aug-06 9:47
Andre xxxxxxx23-Aug-06 9:47 
Whenever possible I use setters for strings (BSTRs) rather than getters, but sometimes this is not possible.

The advantage of a setter is that I only have to guarantee the lifetime of the string during the call of a method, and since the calls are synchronous the string can be on the stack, on the heap or in the resources and the other component doesn't have to care about it.

But how about getters, GetName for example. Should the caller pass a buffer? Should the callee make a copy of the string and offer a method to free the string? Or should the caller assume that the string will not be deleted during the execution of its own method and just not save the pointer for later use?

I would like to use a consistent way that works across different languages.

AnswerRe: Best practice for strings Pin
Mike Dimmick23-Aug-06 10:25
Mike Dimmick23-Aug-06 10:25 
GeneralRe: Best practice for strings Pin
Andre xxxxxxx23-Aug-06 11:02
Andre xxxxxxx23-Aug-06 11:02 
GeneralRe: Best practice for strings Pin
Mike Dimmick23-Aug-06 13:49
Mike Dimmick23-Aug-06 13:49 
QuestionEthernet Programming Pin
Muhammad Azeem Azam22-Aug-06 23:01
Muhammad Azeem Azam22-Aug-06 23:01 
AnswerRe: Ethernet Programming Pin
Mike Dimmick23-Aug-06 0:22
Mike Dimmick23-Aug-06 0:22 
QuestionNamespace in IDL Pin
Andre xxxxxxx22-Aug-06 11:56
Andre xxxxxxx22-Aug-06 11:56 
AnswerRe: Namespace in IDL Pin
Steve S22-Aug-06 21:56
Steve S22-Aug-06 21:56 
GeneralRe: Namespace in IDL Pin
Andre xxxxxxx23-Aug-06 2:30
Andre xxxxxxx23-Aug-06 2:30 
GeneralRe: Namespace in IDL Pin
Steve S23-Aug-06 3:07
Steve S23-Aug-06 3:07 
QuestionCreate a Thread in COM dll but thread "HANG the whole COM DLL"~ Pin
rockryan21-Aug-06 8:19
rockryan21-Aug-06 8:19 
AnswerRe: Create a Thread in COM dll but thread "HANG the whole COM DLL"~ Pin
Mike Dimmick22-Aug-06 2:34
Mike Dimmick22-Aug-06 2:34 
GeneralRe: Create a Thread in COM dll but thread "HANG the whole COM DLL"~ Pin
rockryan27-Aug-06 3:05
rockryan27-Aug-06 3:05 
Question....> Graduation Project <..... Pin
amalemam19-Aug-06 13:23
amalemam19-Aug-06 13:23 
QuestionDCOM Memory not being Released Pin
cyoung3518-Aug-06 8:35
cyoung3518-Aug-06 8:35 
QuestionActivex control not able move in the form Pin
rahul_7718-Aug-06 3:33
rahul_7718-Aug-06 3:33 
QuestionHow to generate strong key name for an interop? Pin
Shilpa117-Aug-06 14:02
Shilpa117-Aug-06 14:02 
AnswerRe: How to generate strong key name for an interop? Pin
Mike Dimmick19-Aug-06 13:35
Mike Dimmick19-Aug-06 13:35 

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.