Re: about window.external and type library
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Thu, 31 Jan 2008 16:44:00 -0500
susan wrote:
i have made a COM object to be called from 'window.external'.
it seems i have to reg the type library to the registry.
my question is can i implement some interfaces to avoid this.
Are you using ATL's IDispatchImpl to implement IDispatch for your
object, by any chance? If so, simply specify 0xFFFF for wMajor and
wMinor template parameters. You would still need to build the type
library and bind it to your application as a resource, but you won't
have to register it.
i mean the IE direct get type info from my code instead of
from the reg.
IE doesn't use your type library at all, it just calls
IDispatch::Invoke. IDispatchImpl needs the type library to translate
Invoke calls into actual method calls.
--
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
.
- References:
- about window.external and type library
- From: susan
- about window.external and type library
- Prev by Date: about window.external and type library
- Previous by thread: about window.external and type library
- Index(es):
Relevant Pages
|
|