Re: ATL and COM+

From: Tom Alter (Lord2702_at_MSN.com)
Date: 03/13/05


Date: Sun, 13 Mar 2005 12:14:22 -0800

All those attributes that you have applied are all standard and get applied when you
create the ATL wizard with attributed project, but my simple question to use, how to set
the Min-Max- and Timeout of ObjectPooling as attribute? Do you know any attribute for
this, or lets say, I want to specify, Library, or Server, or put the name of my
application, or Transaction supported, required, all these things are not possible thru'
attribute, it is possible ONLY wit applying the appropriate interfaces, and that is
ATL/COM/COM+. Your comments please.

"Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in message
news:OShums6JFHA.484@TK2MSFTNGP15.phx.gbl...
> "Tom Alter" <Lord2702@MSN.com> wrote in message
> news:Oi79uefJFHA.2628@tk2msftngp13.phx.gbl...
> > Hello:
> > Platform: WinXP, VSIDE 2003.Net
> > This is not a dot net question, no managed C++.
>
>
> Here you have a sample. b.t.w. I won't repeat comments already made by the
> other.
> [ coclass,
>
> threading(threading=both),
>
> support_error_info("INWCSession"),
>
> aggregatable(type=allowed),
>
> vi_progid("YourProg.ID"),
>
> progid("YourProg.ID.1"),
>
> version(1.0),
>
> uuid("D64ABC71-2C0E-1E85-12CD-215B93CAC996"),
>
> custom(TLBATTR_TRANS_NOTSUPP,0), //this is your only 'advanced stuff'
>
> helpstring("Blah di blah descriptoin")]
>
>
> class ATL_NO_VTABLE CYourComPlusClass:
>
> public IYourComPlusClass,
>
> public IObjectControl
>
> {
>
> public:
>
> DECLARE_PROTECT_FINAL_CONSTRUCT()
>
> HRESULT FinalConstruct()
>
> {
>
> }
>
> void FinalRelease()
>
> {
>
> }
>
> private:
>
>
>
>
> };
>
> etc
>
> > I want to create an ATL COM+ component, a simple object, in C++, I created
> > it
> > successfully, but how do I install it in to the COM+ node, of the
> > component services?
> > Is there any attribute, that can be use to specify the ObjectPool: min and
> > max size and
> > the Timeout, also how to specify the default construct string, through
> > attribute? or with
> > attribute it is not possible at all?
> > Please provide me some links to use the COM+ component with attributes. I
> > mean COM+
> > attributes, like objectpooling, JIT, ConstructString. I applied the
> > appropriate
> > interfaces, but looking for the attributes to configure it.
> > I appreciate your response.
> >
> >
>



Relevant Pages

  • Re: Thread safety tips
    ... > way that they can specify thread safety. ... So how can non-abstract classes (regarding interfaces just as purely ... what you mean by "an interface cannot ensure thread-safety" - opposed to ... You are taking my statement out of context. ...
    (comp.lang.java.gui)
  • Re: Module, plug-ins,..
    ... You can query the registry to get a list of the registered ... COM libraries in a particular category which you specify. ... you still have to design the interfaces ...
    (borland.public.delphi.non-technical)
  • Re: ATL and COM+
    ... that can be use to specify the ObjectPool: ... > the Timeout, also how to specify the default construct string, through ...
    (microsoft.public.vc.atl)
  • here it is !
    ... the difficulty began when I did not specify ... It was TCP 135 that was the concern. ... >purposes (I know conceptual exploits about this port, ... list of network interfaces indexes ...
    (microsoft.public.security)
  • Re: how to import two .tlb uses same interface?
    ... Unless you specify no_namespace flag on #import directive, ... interfaces will be in different namespaces. ...
    (microsoft.public.vc.atl)

Quantcast