Re: Check If COM Reference Available on Machine

From: Bob Phillips (bob.phillips_at_notheretiscali.co.uk)
Date: 06/15/04


Date: Tue, 15 Jun 2004 23:49:05 +0100

meant late bind not early bind.

-- 
HTH
Bob Phillips
    ... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
news:ewik8myUEHA.3664@TK2MSFTNGP12.phx.gbl...
> Matthew,
>
> I am not understanding what you mean by available then. As Jamie said, if
> you early bind, if the dll doesn't exist, CreateObject will fail, it
cannot
> create an object when the dll is not there. Using late binding, the code
> will compile, it will be a run-time error which is trappable.
>
> -- 
>
> HTH
>
> Bob Phillips
>     ... looking out across Poole Harbour to the Purbecks
> (remove nothere from the email address if mailing direct)
>
> "Matthew Wieder" <Development@SatoriGroupInc.com> wrote in message
> news:%23xaPzXyUEHA.3944@TK2MSFTNGP12.phx.gbl...
> > Once I get to the second workbook, it's too late to call CreateObject
> > because it fail on pen since the reference is missing and the code won't
> > compile as you said.  In the first workbook, I theoretically could call
> > CreateObject before I send the code over there, but then it's actually
> > going to create the object which we don't want to do.  We just want to
> > know if the object is available.
> > thanks,
> > -Matt
> >
> > Jamie Collins wrote:
> > > "Bob Phillips" wrote in message ...
> > >
> > >
> > >>That's not the point is it? The guy wants to know if the dll is
> installed,
> > >>and if  not, then he can exit graciously knowing the app won't work.
If
> the
> > >>dll isn't installed, late binding doesn't work any better than early
> > >>binding.
> > >
> > >
> > > Bob, Isn't using using CreateObject a good way of finding out if the
> > > dll is installed and allow for a graceful exit? Early binding would
> > > result in compile errors if the dll wasn't installed, wouldn't it? I
> > > am certainly open minded to missing the point here <g>.
> > >
> > > Jamie.
> > >
> > > --
> >
>
>


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: 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)
  • Re: Need Visual Basic for AppSentinel?
    ... Bob Phillips wrote: ... But a DLL is the best and easiest way to do it IMO. ... one that can stop your product running if the registration code ...
    (microsoft.public.excel.misc)
  • Re: error message from OLEView
    ... to open (Bind To File function) the DLL. ... there is an error message. ... From that file open dialog select your dll and you should be able to browse your type library. ... 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. ...
    (microsoft.public.vc.language)
  • 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)

Loading