Subject Re: [firebird-support] Re: IBPP - Is the Database Connected?
Author Dan Wilson
> > > I'm wondering if there is a method that will tell
> > > me if a database is currently connected.
> >
> > There is, in IBPP 2.3 (it is tagged "beta", but that is just a name,
> you
> > can use it, it is stable and about to be released).
> >
> > Though, if there wasn't your application could have known if it
> > connected or not I think. That's so basic. But anyway: there is a 'bool
> > Connected(void)' method.
>
>
> I'm not finding "Connected". Please help me out.
>
> I'm using the 2.3.0.0 Beta, which I believe is required
> to access the embedded Firebird database engine. I've been
> building tables, inserting and selecting data.
>
> I've just tried to compile with the following statement:
>
> if (database_id->Connected())
>
> Microsoft VC6 generates this error:
>
> error C2039: 'Connected' : is not a member of 'IDatabase'
>
> I'm looking at that version's ibpp.h as I'm typing
> and a search for the word "Connected" comes up empty.
>

I am still using IBPP 2.2.2.3, but just downloaded beta 2.3.0.0 from sourceforge, and see what you see: Connected is missing.

However, the CVS tree on sourceforge has a new version of ibpp.h which does have the Connected method.

My suggestion: retrieve copies of the files from the CVS tree on Sourceforge and see if that works better. You can use the CVS web interface on SF rather than a full CVS client if that's easier for you.

HTH,

Dan.