Re: AtlAdvice returns with 0x80070005
mim1711 <mim1711@discussions.microsoft.com> wrote:
I extented an existing MFC application with an ATL object. This object
supports a connection point which is implemented in a separate class
of the form:
template <class T>
class CProxyIDBCServerEvent : public IConnectionPointImpl<T,
&IID_IDBCServerEvent, CComDynamicUnkArray>
For testing I wrote a MFC dialog based test application which
communicates with the ATL object. The two apps run on different
machines. On both machines I#m logged in with the same user name and
rights. Calling the ATL object interfaces is no problem, but when I
call AtlAdvice() the return code is 0x80070005.
This would be "Access Denied". The problem is as follows: you are
setting security on the client site, and that enables you to connect to
the server. But in connection point mechanism, the server and client
switch roles - the server is trying to call you on the sink pointer.
Now, the server does not handle security in any way, so its call fails
with "access denied", and it propagates this error back to you.
See if this helps:
http://groups.google.com/group/microsoft.public.win32.programmer.ole/browse_thread/thread/7f8b6e3f4c4accae
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925