Re: GIT GetInterfaceFromGlobal returns E_UNEXPECTED with reg-free
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Fri, 2 Nov 2007 09:54:21 -0700
Well, that's what we do and it works for us. E.g. it works in
practice, I'll leave the theoretical part to you... :)
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"gscott2112" <gscott2112@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E7712A3B-A3D7-4834-B112-134A2F0F5C84@xxxxxxxxxxxxxxxx
Alexander,
Since we are trying to use reg-free COM, could I in theory use this method
to register all my COM objects during application startup as opposed to
using
application manifests and embedded dll manifests?
"Alexander Nickolov" wrote:
You need to register marshaling support for your interfaces.
You do so by:
LoadLibrary for your P/S DLL
GetProcAddress for DllGetClassObject
Call DllGetClassObject for each IID
CoRegisterClassObject for each IID
CoRegisterPSClsid for each IID
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"gscott2112" <gscott2112@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:141BB1DF-C660-4141-AC74-4E2BBBACEB5E@xxxxxxxxxxxxxxxx
I'm trying to developer a reg-free COM object using side-by-side
assemblies,
but I am having problems with the GlobalInterfaceTable when using the
object
in a reg-free environment.
My object is failing to send out events. I am using the ATLCPImplMT
connection point implementation which stores the connections in the
GlobalInterfaceTable. If I register my object using regsvr32
everything
works normally. Likewise if I use that standard ATL
IConnectionPointImpl
everything works normally.
When I try to use the GIT base ATLCPIMplMT, the GIT
GetInterfaceFromGlobal
is always returning E_UNEXPECTED.
Any ideas what is causing this?
.
- Next by Date: Re: OleCreatePropertyFrame position of property frame does not work?
- Next by thread: Re: OleCreatePropertyFrame position of property frame does not work?
- Index(es):
Relevant Pages
|