Re: ATL Server Class Method Implementation question

From: Andrew S. Giles (AndrewSGiles_at_discussions.microsoft.com)
Date: 01/10/05


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
> >
> >
>
>
>



Relevant Pages

  • Re: What does an Active X control mean by Accelerator?
    ... ATL 7.0 came out more than 2 years after that article:). ... Besides, Dharma Shukla used to work in Microsoft, ... > "Alexander Nickolov" wrote in message ... >>> and after creating the control to subclass the child window using a ...
    (microsoft.public.win32.programmer.ole)
  • Re: doubts in com threading model
    ... Microsoft MVP, MCSD ... COM object wizard do not specify the threading model, ... I created ATL COM Exe and inserted new atl com object. ... "Alexander Nickolov" wrote: ...
    (microsoft.public.win32.programmer.ole)
  • Bug in CThreadPool::ThreadProc using IO Completion Ports and Socke
    ... We designed a high performance socket server application that runs as an EXE ... If this happens in the stock code for this, ATL generates an ASSERT ... We have copied the ATL Threadpool class and modified the ThreadProc method to: ... If it is by design, why is it this way, and was the CThreadPool class not ...
    (microsoft.public.vc.atl)
  • Re: Object modules
    ... "Alexander Nickolov" wrote in message ... > Don't make an ATL project, make a static library project. ... > Note ATL is not suitable for use in static libraries. ...
    (microsoft.public.win32.programmer.ole)
  • cant raise events from ATL control in C# app in VS 2005 debugger
    ... I am seeing problems raising events in a C# app that is using an ATL ... I am developing a multithreaded ATL control. ... Additional Information: Context 0x1a0528' is disconnected. ...
    (microsoft.public.dotnet.framework.interop)