Juergen Schmied wrote:

> > > > What I would suggest is a merge between your new implementation and Rein
> > > > Klases' original code. The code could go like this...
> > > I removed this code because when starting hh.exe it finds something what
> > > is not a typelib and crashes. We would need a more safe way here...
> >
> > See also the documentation for load typelib:
> >
> > - first it is tried if the file is a stand-alone typelib
> > - if that fails, then if it is a executable load the typelib from
> > resource
> > - if that fails parse the file into a moniker.
> Sounds good let's impement like this. Should I go for if?
>
> MapFile
>  if(Signature = MSFT)
>  ReadTypelib(BaseAdress)
> Unmap
>
> else if(Signature = MZ)
>  LoadLibrary()
>  GetResource()
>  ReadTypelib(ResourceAdress)
> else
>   FIXME: case3
>
> juergen
>

That sounds good to me!

Reply via email to