Re: error message from OLEView



Hi George,

I have used unmanaged C++ developed a native COM DLL. Then I use OLE Viewer
(from command line oleview) to open (Bind To File function) the DLL. Then
there is an error message.

Use the File menu to view the type library of your COM object. From that file open dialog select your dll and you should be able to browse your type library.

IMoniker:BindToObject failed on the file moniker created from
(c:\temp\foo.dll) Bad extension for file

(MK_E_INVALIDEXTENSION) ($800401E6)

Anything wrong?

Never used BindToObject but I would expect that it tries to bind to some persisted state of a COM object, not to open its type library, if that is what you want to do.

--
SvenC


.



Relevant Pages

  • COM->.net Assembly Binding: "Cannot find the assembly..."
    ... I'm trying to call a .net DLL from within the VB6 IDE. ... In my mind, this first log entry proves that the CODEBASE option is working, ... LOG: Where-ref bind. ... LOG: Dynamic Base = NULL ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Check If COM Reference Available on Machine
    ... meant late bind not early bind. ... "Bob Phillips" wrote in message ... > create an object when the dll is not there. ... >> Once I get to the second workbook, it's too late to call CreateObject ...
    (microsoft.public.excel.programming)
  • RE: Where has WMSDefines Gone in SP2???????
    ... Are you able to compile fine? ... I get "Could not bind to dependency interop_msxml.dll" ... Microsoft.WindowsMediaServices.dll as a reference to my VS project. ... that is using the previous version of the mentioned DLL. ...
    (microsoft.public.windowsmedia.sdk)
  • How to link and bind C/C++ under z/OS
    ... Does anybody know how to link and bind a source file with import file ... DLL and IMPORT file, but I don't know how to bind them. ... I don't find any information on IBM web site. ...
    (bit.listserv.ibm-main)
  • RE: fax notification
    ... Thank you for posting in the SBS newsgroup. ... message "mail system wrong DLL", and the inbound fax cannot was deliver to ... Please copy the exact error message and paste it in your reply. ...
    (microsoft.public.windows.server.sbs)