Re: about window.external and type library



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


.



Relevant Pages

  • Re: about window.external and type library
    ... can i use LoadTypeLibEx instead of the LoadRegTypeLib? ... it seems i have to reg the type library to the registry. ... Are you using ATL's IDispatchImpl to implement IDispatch for your object, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • RE: for..in..do
    ... ' Configures the registry settings. ... ' Loads the individual user profile hives and configures needed USER ... Dim strUserSID, Subfolder, UserPaths, strRegPath, strRegistryHive, ... registry, import the reg file, then unload the reg hive. ...
    (microsoft.public.scripting.vbscript)
  • Re: Drei aktuell ungepatchte Sicherheitsluecken in ActiveX-Controls ermoeglichen das Ausfuehren
    ... Da hat Freudi etwas geschwindelt: mit dem IE6 ... Seine .REG brauchen nur diejenigen, die XML4 installiert haben UND den ... Eher der MRU-Eintrag von WordPad oder Word, mit dem Du Deinen Vermerk ... in die Registry gekommen. ...
    (microsoft.public.de.security.heimanwender)
  • Re: Free Reg cleaner available
    ... Hi Just Me - In my experience all of these Reg cleaners, even the best, are ... previous Registry) IF you're FAT32 OR have a DOS startup disk with NTFS ...
    (microsoft.public.windowsxp.general)
  • Re: Modify Registry on all SBS2003 clients
    ... registry setting to all workstations. ... command "REG ADD" to modify registry. ... the following command will change the registry value as your ... You may copy above command into the login script file SBS_LOGIN_SCRIPT.bat ...
    (microsoft.public.windows.server.sbs)