Re: Check If COM Reference Available on Machine
From: Bob Phillips (bob.phillips_at_notheretiscali.co.uk)
Date: 06/15/04
- Next message: Terry: "Background Query Timeout"
- Previous message: Tom Ogilvy: "Re: To Tom -"
- In reply to: Bob Phillips: "Re: Check If COM Reference Available on Machine"
- Next in thread: Matthew Wieder: "Re: Check If COM Reference Available on Machine"
- Messages sorted by: [ date ] [ thread ]
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.
> > >
> > > --
> >
>
>
- Next message: Terry: "Background Query Timeout"
- Previous message: Tom Ogilvy: "Re: To Tom -"
- In reply to: Bob Phillips: "Re: Check If COM Reference Available on Machine"
- Next in thread: Matthew Wieder: "Re: Check If COM Reference Available on Machine"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading