Re: ATL Server Class Method Implementation question
From: Andrew S. Giles (AndrewSGiles_at_discussions.microsoft.com)
Date: 01/10/05
- Next message: David Liebtag: "Re: Replacements for IsValidIID and IsValidInterface"
- Previous message: Brian Muth: "Re: Replacements for IsValidIID and IsValidInterface"
- In reply to: Alexander Nickolov: "Re: ATL Server Class Method Implementation question"
- Next in thread: Alexander Nickolov: "Re: ATL Server Class Method Implementation question"
- Reply: Alexander Nickolov: "Re: ATL Server Class Method Implementation question"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 Jan 2005 12:01:02 -0800
Alexander,
OK, I know it is up to the design, but I cannot find anywhere to associate
any of my Application's objects with the new ATL COM objects, so that when
the external call (from a C# app in a separate process space) comes in, I
have access to the functionality in the app that is needed. Simply put, I do
not know where the implementation class is instantiated, in order for me to
give it a pointer to what it needs to work. Where should I be looking? Did
I design this wrong? It appears that the natural COM encapsulation is sot
strong that I have been locked away from my application when the calls come
in. Do I need to break encapsulation to get around this? If so, how? Do I
need to inherit something off of these ATL classes, so that the
implementations will fire in the right process? Id so, how/where?
Im just a bit lost, ATL isnt really my strong point.
Thanks in advance,
Andrew
"Alexander Nickolov" wrote:
> 1. This is up to you to design.
>
> 2. The default is for a single-threaded STA server, which is the
> perfect choice for an MFC app.
>
> --
> =====================================
> Alexander Nickolov
> Microsoft MVP [VC], MCSD
> email: agnickolov@mvps.org
> MVP VC FAQ: http://www.mvps.org/vcfaq
> =====================================
>
> "Andrew S. Giles" <AndrewSGiles@discussions.microsoft.com> wrote in message
> news:F6822264-F40E-4AA9-BEE8-5396C5D8B596@microsoft.com...
> > We have added 3 simple ATL objects to a MFC application in order to have
> > access to the app's functionality through COM.
> >
> > We are in the implementation. how do we (1) get access to the objects in
> > the application. and (2) Is this server implementation code on the
> > server's
> > thread of execution?
> >
> > Thanks in advance for any help.
> >
> > Andrew S. Giles
> >
> >
>
>
>
- Next message: David Liebtag: "Re: Replacements for IsValidIID and IsValidInterface"
- Previous message: Brian Muth: "Re: Replacements for IsValidIID and IsValidInterface"
- In reply to: Alexander Nickolov: "Re: ATL Server Class Method Implementation question"
- Next in thread: Alexander Nickolov: "Re: ATL Server Class Method Implementation question"
- Reply: Alexander Nickolov: "Re: ATL Server Class Method Implementation question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|