Subject Re: IBPP - Is the Database Connected?
Author barfingdog_2004
--- In firebird-support@yahoogroups.com, Olivier Mascia <om@t...> wrote:
> On 13/05/2004 23:54 GMT+1, barfingdog_2004 wrote:
>
> > Hi Folks:
> >
> > Several days ago I emailed a question to the IBPP
> > support group. I haven't seen it addressed, so I'll
> > ask here.
>
> You posted it there 12 May 00:36 of my time.
> And I answered it there same day 12 May 12:32 of my time.
> That is within 12 hours from your post.
> I duplicate my answers here.
>
> > Is the list of methods in the IBPP documentation
> > complete?
>
> No. It was at the time it was written.
> It has to be updated.
>
> At any time, the **best** reference for such things **is** the file
ibpp.h.
>
> > 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.

Thank you Oliver and Dan:

I'm having a tough time thinking like a Firebird user.

I'm not finding "Connected". Please help me out.

I'm a Unix programmer, developing my second Windows
project on WIN2K.

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.

The 3rd line of this this header file says:

File : $Id: ibpp.h,v 1.53 2004/03/01 20:17:21 epocman Exp $

I go to IBPP's site at http://www.ibpp.org/index.php.

I click on the "ibpp-discuss" link in the paragraph
with the header "Where to get support ?".

This takes me to
http://lists.sourceforge.net/lists/listinfo/ibpp-discuss.

Here I find the following:

"To see the collection of prior postings to the list,
visit the ibpp-discuss Archives", I hit the "ibpp-discuss
Archives" link.

Here is a grid, displaying the number of posts submitted
in the last 4 years, followed by a list of headers for each
post.

The grid shows no posts for May, and the date under the
"Last Post" column for the first header displays
"2004-04-03 21:28".

I've searched the archive for the word "connect", and
found over seven pages of headers in response. The
answer might be in there, but none of the headers I
expanded addressed my question.

I'm sorry I'm so retarded. How do I find posts in the
IBPP discussion page? Why can't I find "Connected" in
ibpp.h? Please type slowly and use little words.

Thanks
Larry